Gameyfin
Sign in to the Gameyfin game library manager with Pocket ID.
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
Gameyfinand add the callback URLhttps://gameyfin.example.com/login/oauth2/code/oidc. - 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, the Userinfo URL, the Logout URL and the Certificate URL. The client secret is only shown once.
- On the client’s General tab, set Client Launch URL to
https://gameyfin.example.com/login, then click Save. - On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Create groups in Pocket ID
Section titled “Create groups in Pocket ID”- In Pocket ID, open Administration → User Groups and click Add Group to create two groups, one for
superadminsand one foradmins:- Friendly Name: fill out to your liking.
- Name: use the generated one or change it if you want.
- Save each group, then add a custom claim on each group’s page under Custom Claims:
- Key:
roles - Value:
["GAMEYFIN_SUPERADMIN"]for the superadmin group and["GAMEYFIN_ADMIN"]for the admin group.
- Key:
- Save the custom claim.
- Add your users to their respective groups in Pocket ID. Users that are in neither group are automatically assigned the “User” role.
Configure Gameyfin
Section titled “Configure Gameyfin”- Open Gameyfin’s SSO settings page (Administration → SSO), enable SSO and fill out the SSO provider configuration with the values from Pocket ID.
You can use Auto-populate to fill most of the values automatically, or copy them manually from 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, for example
https://id.example.com, without a trailing slash. - Authorize URL: the Authorization URL from Pocket ID.
- Token URL: the Token URL from Pocket ID.
- Userinfo URL: the Userinfo URL from Pocket ID.
- Logout URL: the Logout URL from Pocket ID.
- JWKS URL: the Certificate URL from Pocket ID.
- Restart Gameyfin.