[keycloak-user] OAuth Access Token Response in XML

Stian Thorgersen sthorger at redhat.com
Mon Jul 4 13:11:19 EDT 2016


Adding list back - please use reply all

I'm not following. The response payload is the token, so not sure what it
is that you want in XML.

On 4 July 2016 at 15:41, <asarathi at vizuri.com> wrote:

> Sorry if I wasn't clear earlier. I don't want the token itself to be in
> xml. I just want the response payload from the token endpoint to be xml or
> Json based on the accept header.
>
>
> On Jul 4, 2016, at 3:04 AM, Stian Thorgersen <sthorger at redhat.com> wrote:
>
> We only support JWT with OpenID Connect. Can you elaborate on why you want
> an XML token?
>
> You could add a custom REST endpoint or a custom protocol to do this, but
> not sure I'd recommend doing it as there's a fair bit of logic that goes
> into the token endpoint.
>
> On 1 July 2016 at 18:39, Aswini Sarathi <asarathi at vizuri.com> wrote:
>
>> Hi,
>>
>>     I am trying to find out if there is a way to get response from token
>> endpoint  /realms/{realm-name}/protocol/openid-connect/token in xml or
>> json format based on the Accept header. If its not supported out of the
>> box, what other options are available to do this? Should I look at creating
>> a custom endpoint by implementing the SPI to do the mapping?
>>
>> Thanks!!
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160704/064becbe/attachment.html 


More information about the keycloak-user mailing list