Hi, 
We have this error in the log and we use jwt token. We have generated jwt 
token with generate-jwt --subject login. When we iuse token, the 
authentification is ok but there are the error in log file :   

2025-06-12 08:27:46,698 WARN [org.apereo.cas.util.function.FunctionUtils] - 
<org.jooq.lambda.UncheckedException: org.jose4j.lang.JoseException: A JWS 
Compact Serialization must have exactly 3 parts separated by period ('.') 
characters
        AbstractCipherExecutor.java:verifySignature:188
        BaseStringCipherExecutor.java:lambda$verifyAndDecrypt$4:275
        FunctionUtils.java:lambda$doIf$3:110
        BaseStringCipherExecutor.java:verifyAndDecrypt:276
>
2025-06-12 08:27:46,699 WARN [org.apereo.cas.util.function.FunctionUtils] - 
<DecryptionException
        EncodingUtils.java:decryptJwtValue:480
        BaseStringCipherExecutor.java:verifyAndDecrypt:283
        BaseStringCipherExecutor.java:decode:129
        BaseStringCipherExecutor.java:decode:123
>
2025-06-12 08:27:46,699 ERROR 
[org.apereo.cas.authentication.DefaultAuthenticationManager] - 
<Authentication has failed. Credentials may be incorrect or CAS cannot find 
authentication handler that supports 
[TokenCredential(super=BasicIdentifiableCredential(id=eyJjdHkiOiJKV1QiLCJlbmMiOiJBMTkyQ0JDLUhTMzg0IiwiYWxnIjoiZGlyIn0......),
 
service=AbstractWebApplicationService(id=https://ade.univ-brest.fr/direct/, 
originalUrl=https://ade.univ-brest.fr/direct/, artifactId=null, 
principal=null, source=service, tenant=null, loggedOutAlready=false, 
format=XML, 
attributes={headers={jakarta.servlet.http.HttpServletRequest.header-host=[cas.univ-brest.fr],
 
jakarta.servlet.http.HttpServletRequest.header-user-agent=[curl/7.74.0], 
jakarta.servlet.http.HttpServletRequest.header-accept=[*/*], 
jakarta.servlet.http.HttpServletRequest.header-content-length=[447], 
jakarta.servlet.http.HttpServletRequest.header-content-type=[application/x-www-form-urlencoded]},
 
service=[https://ade.univ-brest.fr/direct/], 
httpRequest={jakarta.servlet.http.HttpServletRequest.httpMethod=[POST], 
jakarta.servlet.http.HttpServletRequest.requestURL=[https://cas.univ-brest.fr/cas/login],
 
jakarta.servlet.http.HttpServletRequest.requestURI=[/cas/login], 
jakarta.servlet.http.HttpServletRequest.requestId=[5bdc2], 
jakarta.servlet.http.HttpServletRequest.contentType=[application/x-www-form-urlencoded],
 
jakarta.servlet.http.HttpServletRequest.contextPath=[/cas], 
jakarta.servlet.http.HttpServletRequest.localeName=[cas.univ-brest.fr]}, 
token=****************]}))] of type [TokenCredential]. Examine the 
configuration to ensure a method of authentication is defined and analyze 
CAS logs at DEBUG level to trace the authentication event.>
2025-06-12 08:27:46,699 ERROR 
[org.apereo.cas.authentication.DefaultAuthenticationManager] - 
<[OAuth20AccessTokenAuthenticationHandler]: [1 errors, 0 successes / Unable 
to validate JWT signature]>

Thanks,
Eric 

-- 
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/9a652331-a833-4b36-9da8-d7c938da9350n%40apereo.org.

Reply via email to