Repository navigation
How should IdP-issued users be provisioned when they never touch the Admin UI? #6310
Replies: 2 comments 4 replies
|
Unfortunately, this usecase is currently not supported. A new API endpoint for authing with SSO would be a new feature to be considered. I'll raise an issue for it. EDIT: #6409 |
|
@myclaudejaja The reason "users coming in using an IDP don't get any love" in the REST API comes down to an architecture assumption in early SSO implementations: IDP users are traditionally auto-provisioned via JIT (Just-In-Time) provisioning on first OIDC callback/redirect (which requires a web browser session). Because your IDE clients interact purely via OAuth 2.1 + PKCE / Dynamic Client Registration (DCR) headlessly without visiting the Admin UI, the JIT flow is never triggered. While waiting for official support via #6409, here are two practical workarounds to provision federated Keycloak users into ContextForge headlessly: Workaround 1: Automate DCR + Token Exchange Provisioning via Keycloak Service AccountSince your IDE clients use DCR against Keycloak, you can create a background administrative provisioning script running on a cron or Webhook trigger:
Workaround 2: SCIM / Keycloak Webhook Pre-ProvisioningIf ContextForge exposes a database or internal sync mechanism:
|
Uh oh!
There was an error while loading. Please reload this page.
We're running ContextForge as an enterprise MCP gateway. Our users come from Active Directory, federated into Keycloak, and connect through an IDE as the MCP client (OAuth 2.1 + PKCE, DCR against Keycloak). The Admin UI is restricted to platform admins by policy — regular users have no path to it and never will. So "log in via SSO in the browser once to get provisioned" isn't available to us.
We've been trying to find the supported way to get these users created in ContextForge, but no luck. Any idea what the provisioning for this could be? Because they have an endpoint for creating local users, but users coming in using an IDP don't get any love? Why is that?
All reactions