Issue
- When configuring an OpenID Provider and trying to log in with an user, the callback to the portal shows an error message similar to the one below:
Internal Server Error
An error occurred while accessing the requested resource. http://localhost:8080/c/portal/login/openidconnect?code=73954f22-c6b0-41f2-8a71-58a46deabbad&state=heERCczIQpGlQdUvcXYTR9WZuOYxfihh4e8jv8uYOTo
- DXP logs show one of the messages below:
2022-08-23 13:58:23.244 ERROR [http-nio-8282-exec-10][StatusDisplayContext:92] Error: The client secret must not be null
2022-08-23 13:32:09.231 ERROR [http-nio-8282-exec-7][StatusDisplayContext:92] Error: {"error":"invalid_client"}
- The OpenID Provider doesn't have a client secret.
Environment
- Liferay DXP (Any)
Resolution
- Our OpenID implementation requires both a Client ID AND a Client Secret to be set under the OpenID Providers settings.
- Please generate a Client Secret on your Identity service and configure said secret under the OpenID Provider settings.
Additional Information