Legacy Knowledge Base
Published Jun. 30, 2025

When logging in with an OpenID Provider, the portal shows "Internal Server Error"

Written By

Gustavo Vasconcelos

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

 

Did this article resolve your issue ?

Legacy Knowledge Base