Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Id token encryption problem with OpenID Connect identity provider
Hello,
I'm trying to use Gluu as a OpenID Connect identity provider for Liferay. I ran into the following error: "Caused by: com.nimbusds.oauth2.sdk.GeneralException: Missing required ID token JWE encryption method for RSA1_5". It leads me to believe that Liferay is expecting the id token to be encrypted although it's not required by the OpenID Connect standard. I tried different encryption algorithms settings inside of Gluu. But it seems like I need a Liferay plublic encryption key (JWKS) or the URI where those keys can be accessed (JWKS URI) because without it I'm getting another error "NullPointerException: null".
Thanks for the help.
Hi Teddy,
The message given came from the nimbusds library where the OIDCClientInformation given by liferay do not provide the IDTokenJWEEnc expected.
In order to be able to make it working, you need to address two points : override the OpenIdConnectMetadataFactory to add the IDTokenJWEEnc when the OIDCClientMetadata is build and second point, you need to override the OpenIDConnect configuration to be able to add this new parameter from the UI.
Best regards,
David.
Powered by Liferay™