0

I'm trying to set up Single Sign-On (SSO) for Open-WebUI using Keycloak, but I'm encountering some issues. Could someone provide a step-by-step guide on how to properly configure it? Specifically, I'm looking for guidance on:

  • Setting up Keycloak as an identity provider
  • Configuring Open-WebUI to integrate with Keycloak
  • Handling authentication and token exchange Any insights, documentation, or examples would be greatly appreciated !

1 Answer 1

0

Please create the .env for your open-webui and add these variables.
Mount this .env with your open-webui docker container. and confirm

Also Refer Doc: https://docs.openwebui.com/getting-started/env-configuration

.env

      OAUTH_CLIENT_ID: keyclokaid
      OAUTH_CLIENT_SECRET: secrets
      OAUTH_PROVIDER_NAME: openwebui
      OPENID_PROVIDER_URL: http://keycloak:8080/realms/aiassistant/.well-known/openid-configuration
      OAUTH_SCOPES: openid email profile
      ENABLE_OAUTH_SIGNUP: true
      OAUTH_MERGE_ACCOUNTS_BY_EMAIL: true
      OPENID_REDIRECT_URI: http://localhost:3000/oauth/oidc/callback
      LOG_LEVEL: debug

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.