Custom OIDC Identity Provider on Keycloak 22.0.5

208 views
Skip to first unread message

Doug Whitfield

unread,
Jan 24, 2024, 3:05:22 PM1/24/24
to Keycloak User
Hi Keycloakers,

We have tried to create an internal SPI for Custom OIDC Identity Provider for Keycloak 22 and we are partially able to get the IDP working but initially we couldn't get any OpenID Connect Settings section which is displayed for other inbuilt Identity Providers in Keycloak.

We found the root cause of why OpenID Connect settings are not getting displayed while adding custom Idp to keycloak. In AddOpenIdConnect.tsx, below expressions rendering the UI for OIDC settings only for keycloak-oidc or oidc as provider Id. If we use anything other than this it is not rendering the OIDC section.

Below is the snippet from the source code,const isKeycloak = pathname.includes("keycloak-oidc");const id = `${isKeycloak ? "keycloak-" : ""}oidc`;

After we changed the provider Id to "oidc" instead of our provider Id, now the sections are getting rendered in the GUI but still custom fields are not displayed.

Are there any logs or traces that would be helpful for determining why the custom fields are not displayed?

Best Regards,
Doug Whitfield
Reply all
Reply to author
Forward
0 new messages