5.1.x JWT Authentication

100 views
Skip to first unread message

Didier Capdevielle

unread,
Oct 6, 2017, 10:40:45 AM10/6/17
to CAS Community
Hi all,
I am testing JWT Authentication on a testing CAS Server.
Here is the URL i passed to the server : https://<server>/cas/login?service=https://<application>&token=<token>
<token> is valid on https://jwt.io/ debugger

Here is the log (cas.log) :

ERROR [org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler] - Failed to validate credentials

org.pac4j.core.exception.CredentialsException: No signature algorithm found for JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

....

AND


[org.apereo.cas.token.authentication.TokenCredential@4957b789[service=org.apereo.cas.authentication.principal.SimpleWebApplicationServiceImpl@56809aec[id=https://<application>,originalUrl=https://<application>,artifactId=<null>,principal=<null>,loggedOutAlready=false,format=XML]]] of type [TokenCredential], which suggests a configuration problem.



OK. But i don't find anything about configuration, cas.properties i must change or this algorithm not found. Could anybody give some help (links, samples, ...) ?

Thanks in advance,

Best regards,

Didier Capdevielle

unread,
Oct 11, 2017, 11:47:17 AM10/11/17
to CAS Community
Nobody knows ?  :-(

Didier Capdevielle

unread,
Oct 13, 2017, 5:23:26 AM10/13/17
to CAS Community
Hi everyone,

Is someone having explanation, how to configure or example for the JWT parameters ?

## JWT authentification :
#
# cas.authn.token.name=
# cas.authn.token.principalTransformation.suffix=
# cas.authn.token.principalTransformation.caseConversion=NONE| UPPERCASE|LOWERCASE
# cas.authn.token.principalTransformation.prefix=
Thanks in advance,
Regards,
Reply all
Reply to author
Forward
0 new messages