RE: RE: OIDC Login Shows Internal Server Error (JWK set Read Time Out)

Anish Kumar, modified 2 Years ago. New Member Posts: 18 Join Date: 4/11/23 Recent Posts

Hi All,

I have configured Azure AD OIDC for SSO in the Liferay CE 7.4.3.74 version. Its working fine but sometimes when user try to login using SSO the portal shows Internal server error and in the log I can see below message and its not consistent.

[StatusDisplayContext:92] Error: Unable to validate tokens for client "abc-232-46ce-b5f7-xyz": Couldn't retrieve remote JWK set: Read timed out

How can I fix this error?

Also let me know is there a way to show toast message instead of below Internal Server Error messag?


Waiting for a solution, Thank You

Jan Tošovský, modified 2 Years ago. Liferay Master Posts: 576 Join Date: 7/22/10 Recent Posts

It resembles my issue I reported here https://liferay.atlassian.net/browse/LPS-178327

Anish Kumar, modified 2 Years ago. New Member Posts: 18 Join Date: 4/11/23 Recent Posts

Thank you for sharing the issue URL.

Have you resolved this issue? Please share the solution if any

Jamie Sammons, modified 2 Years ago. New Member Posts: 2 Join Date: 8/10/23 Recent Posts

Hi, Have you been setup custom policy in Azure B2C?. As I am currently receiving this error:  [StatusDisplayContext:92] Error: Unable to parse tokens response from https://XXX.b2clogin.com/XXX.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/token: Missing JSON object member with key "access_token". I have opened a foro Liferay 7.4 OpenID Connect with Azure B2C