SSO integration
Authentication is performed in front of the services through an OpenID Connect-compatible API gateway. MUCGPT only accepts access tokens that contain a configured authorization role and uses a configurable organization claim for authorization checks.
The SSO role is configured in each service's config.yaml under the sso section:
yaml
sso:
role: "mucgpt-user"
admin_role: "mucgpt-admin"
user_id_claim: "user_id"
organization_unit_claim: "organization_unit"Or via environment variable:
bash
# Core service
MUCGPT_CORE_SSO__ROLE=mucgpt-user
# Assistant service
MUCGPT_ASSISTANT_SSO__ROLE=mucgpt-user- Configure a role that is emitted by your identity provider, such as
mucgpt-user. - The API Gateway handles OpenID Connect login, token issuance, and validation; services receive a validated access token.
- The access token includes a configured user-ID claim and a configurable organization claim. The latter is combined with the LDAP organization tree to scope assistant publishing and access.
The local Compose stack seeds its Keycloak realm with the Keycloak Migration Framework.