Getting a CODE_TO_TOKEN_ERROR in SSO while authenticating a PHP based application
Issue
The Web browser loading the application page after user authentication in RH-SSO returned a HTTP 500 Internal Server Error
.
In RH-SSO server.log, we can see the following:
2020-06-29 08:46:25,931 WARN [org.keycloak.events] (default task-376) type=CODE_TO_TOKEN_ERROR, realmId=<realm>, clientId=<client>, userId=null, ipAddress=<client-ip>, error=invalid_code, grant_type=authorization_code, code_id=c62f491a-667b-476b-83d8-69d9e9469e43, client_auth_method=client-secret ...
Environment
- Red Hat Single Sign-On (RH-SSO)
- 7
- PHP based application
- Using PHP OpenID Connect Basic Client Library
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.