Hi all,
After login redirect, my application returns an Unauthorized response due to the fact that the JWT is not recognized as a JWE token.
Debugging application, I've noticed that it is due to the method parseAlgorithm(final JSONObject json) of the com.nimbusds.jose.Header class because "enc" property is not present into JWT header.
if (algName.equals(Algorithm.NONE.getName())) {
// Plain
return Algorithm.NONE;
} else if (json.containsKey("enc")) {
// JWE
return JWEAlgorithm.parse(algName);
} else {
// JWS
return JWSAlgorithm.parse(algName);
}
Any suggestions ?
Why CAS doesn't put "enc" property into the JWT?
My CAS configuration for the JWT Service Tickets is