Unable to login to OCP cluster using RH-SSO as identity provider

Solution Verified - Updated -

Issue

  • We have configured RH-SSO as oidc identity provider in Openshift and when we try to login using RH-SSO identity provider we are getting following error in browser
We are sorry... 
An internal server error has occurred
  • In Openshift oidc integration with RH-SSO - we are getting An internal server error has occurred when setting spec.identityProviders.name with spaces. Following NullPointerException is observed in RH-SSO server log
[org.keycloak.services.error.KeycloakErrorHandler] (default task-57) Uncaught server error: java.lang.NullPointerException
    at org.keycloak.keycloak-services@18.0.9.redhat-00001//org.keycloak.protocol.oidc.utils.RedirectUtils.verifyRedirectUri(RedirectUtils.java:143)
    at org.keycloak.keycloak-services@18.0.9.redhat-00001//org.keycloak.protocol.oidc.utils.RedirectUtils.verifyRedirectUri(RedirectUtils.java:63)
    at org.keycloak.keycloak-services@18.0.9.redhat-00001//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpointChecker.checkRedirectUri(AuthorizationEndpointChecker.java:129)
    at org.keycloak.keycloak-services@18.0.9.redhat-00001//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.process(AuthorizationEndpoint.java:143)
    at org.keycloak.keycloak-services@18.0.9.redhat-00001//org.keycloak.protocol.oidc.endpoints.AuthorizationEndpoint.buildGet(AuthorizationEndpoint.java:112)
    at jdk.internal.reflect.GeneratedMethodAccessor984.invoke(Unknown Source)

Environment

  • Red Hat Single Sign-On (RH-SSO)
    • 7.6.5
  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content