JWT token OAuth

39 views
Skip to first unread message

Lorenzo Di Cola

unread,
Feb 7, 2019, 6:28:40 AM2/7/19
to CAS Community
Hi all,

I'm working with CAS 5.3.7 and I enabled the OAuth/OpenID Authentication [1]. I'm calling the endpoint /oauth2.0/accessToken with the Resource Owner Credentials [2]. I would like to have an access token in JWT format after this call.

Is it possible to have the JWT token during the OAuth flow?

Thank you very much in advance.

Best regards,

Lorenzo




Andy Ng

unread,
Feb 7, 2019, 9:45:48 AM2/7/19
to CAS Community
Hello,


As seen above, the logic behind the access token is just random string of 24 length.

I think your real option here is to either customize CAS yourself, or see if the use of the JWT work flow suits you (https://apereo.github.io/cas/6.0.x/installation/Configure-ServiceTicket-JWT.html).

Cheers!
- Andy



Lorenzo Di Cola

unread,
Feb 7, 2019, 1:10:26 PM2/7/19
to CAS Community
Hi Andy,
First of all thank you very much for you fast reply.
Unfortunately I can confirm that generate the JWT token after the OAuth authentication is not possible.
I tried with your suggested configuration too but without none results.

I already customized my CAS instance in order to let CAS able to generate the JWT token and return it to the client application.

Thanks again!
Best regards,
Lorenzo

Reply all
Reply to author
Forward
0 new messages