[keycloak-dev] Keykload and Swagger.io integration

pslegr pslegr at redhat.com
Wed Apr 22 11:33:34 EDT 2015



On 15.4.2015 13:02, pslegr wrote:
>
> On 9.4.2015 13:30, Stian Thorgersen wrote:
>> ----- Original Message -----
>>> From: "pslegr" <pslegr at redhat.com>
>>> To: "keycloak dev" <keycloak-dev at 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/b85b1ad0a1415751946c57a281c05f7b828c3ad6

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 at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20150422/0a836a6f/attachment-0001.html 


More information about the keycloak-dev mailing list