On 15.4.2015 13:02, pslegr wrote:
On 9.4.2015 13:30, Stian Thorgersen wrote:
> ----- Original Message -----
>> From: "pslegr" <pslegr(a)redhat.com>
>> To: "keycloak dev" <keycloak-dev(a)lists.jboss.org>
>> Sent: Wednesday, 8 April, 2015 2:00:08 PM
>> Subject: [keycloak-dev] Keykload and Swagger.io integration
>>
>> Hi guys,
>>
>> I've found an old thread wrt ${subject} here
>>
http://lists.jboss.org/pipermail/keycloak-dev/2014-May/001842.html
>> and I wonder, if there was some further research on it.
>>
>> I need to integrate Swagger.io and Keycloak
>>
>> Anyone tried out already, or having some example to show ?
> Nope, but if you come up with something we want it :)
Ok, I will try to design it myself and get back to you, so you can
reuse it if you want :)
https://github.com/project-ncl/pnc/commit/b85b1ad0a1415751946c57a281c05f7...
It is simple usage of Keycloak JS adapter plus Swagger adding additional
header via
window.authorizations.add("oauth2",
newApiKeyAuthorization("Authorization", "Bearer "+keycloak.token,
"header"));
works quite nice with 'login-required'
I did not deal with logout...
cheers
Pavel
>> thanks
>> Pavel
>>
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev