Open WebUI
Sign in to Open WebUI with Pocket ID.
Create groups in Pocket ID
Section titled “Create groups in Pocket ID”(Optional) This step is recommended if you want Open WebUI to manage roles and groups.
- In Pocket ID, open Administration → User Groups and click Add Group.
- Create a group for users and a group for admins, for example with the Name
usersandadmins.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Open WebUIand add the callback URLhttps://openwebui.example.com/oauth/oidc/callback. - Click Create and copy the Client ID, the Client secret and the OIDC Discovery URL. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Open WebUI
Section titled “Configure Open WebUI”Add the following to your Docker .env file for Open WebUI:
ENABLE_OAUTH_SIGNUP=trueOAUTH_CLIENT_ID=<client-id>OAUTH_CLIENT_SECRET=<client-secret>OAUTH_PROVIDER_NAME=Pocket IDOPENID_PROVIDER_URL=https://id.example.com/.well-known/openid-configurationOAUTH_MERGE_ACCOUNTS_BY_EMAIL=true
# For group management, you can use the following variables:ENABLE_OAUTH_ROLE_MANAGEMENT=trueENABLE_OAUTH_GROUP_MANAGEMENT=trueENABLE_OAUTH_GROUP_CREATION=true# Make sure these match the groups you created in Pocket IDOAUTH_ALLOWED_ROLES=users,adminsOAUTH_ADMIN_ROLES=adminsOAUTH_ROLES_CLAIM=groupsOAUTH_SCOPES=openid email profile groups
# Optional but useful variables:
# So users are immediately added instead of being "pending"DEFAULT_USER_ROLE=user# Make Pocket ID the only auth method# comment out if you need access via passwordENABLE_LOGIN_FORM=false# Make Pocket ID the source of truth for the profile picturesOAUTH_UPDATE_PICTURE_ON_LOGIN=trueWe recommend keeping a separate admin account without OAuth in Open WebUI, so you don’t get locked out while testing the integration. See the Open WebUI documentation for more information.