Termix
Sign in to the Termix server management platform with Pocket ID.
Replace termix.example.com with the URL of your Termix instance and id.example.com with the URL of your Pocket ID instance.
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
Termixand add the callback URLhttps://termix.example.com/users/oidc/callback. - Click Create and copy the Client ID and the Client secret. Under Show more details, also copy the Issuer URL, the Authorization URL, the Token URL and the Userinfo 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.
(Optional) To manage Termix admins from Pocket ID, open Administration → User Groups, click Add Group, create a group named termix-admin and add the users that should become admins in Termix.
Configure Termix
Section titled “Configure Termix”You can set this up in the GUI or with environment variables.
In the GUI, you can configure multiple OIDC clients.
- Log in to Termix as an administrator.
- Click your admin username in the bottom-left corner and open the Admin Settings interface.
- Open the SSO PROVIDERS tab.
- Click Add provider.
- Set the following settings:
- Display name:
Pocket ID - Client ID: the Client ID from Pocket ID
- Client Secret: the Client secret from Pocket ID
- Issuer URL: the Issuer URL from Pocket ID
- Authorization URL: the Authorization URL from Pocket ID
- Token URL: the Token URL from Pocket ID
- (Optional) To configure the admins from Pocket ID:
- Add
groupsto the Scopes field, so that it becomesopenid email profile groups. - Group claim:
groups - Admin group:
termix-admin
- Add
- Display name:
- Click Save Provider.
Environment variables
Section titled “Environment variables”Set the following environment variables in your .env file:
OIDC_CLIENT_ID=<client-id>OIDC_CLIENT_SECRET=<client-secret>OIDC_ISSUER_URL=https://id.example.comOIDC_AUTHORIZATION_URL=https://id.example.com/authorizeOIDC_TOKEN_URL=https://id.example.com/api/oidc/tokenOIDC_USERINFO_URL=https://id.example.com/api/oidc/userinfo(Optional) To configure the admins from Pocket ID, also set:
OIDC_SCOPES=openid email profile groupsOIDC_ADMIN_GROUP=termix-adminKnown issues
Section titled “Known issues”Be careful with the option General - Silent OIDC Login by Default, because it can send your application into an infinite loop.