MinIO
Sign in to the MinIO object storage console with Pocket ID.
Create groups in Pocket ID
Section titled “Create groups in Pocket ID”- In Pocket ID, open Administration → User Groups and click Add Group.
- Create a group with the Name
consoleAdmin(case-sensitive). - Add your user to the
consoleAdmingroup to sign in to MinIO as an administrator. You can also add groups for the other built-in policies; see the MinIO documentation for details.
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
MinIOand add the callback URLhttps://minio-console.example.com/oauth_callback. - Click Create and copy the Client ID and the Client secret. 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 MinIO
Section titled “Configure MinIO”- Sign in to MinIO with an admin (or root) account.
- Under Administrator, select Identity, then OpenID.
- Click Create Configuration and fill in the fields:
- Config URL:
https://id.example.com/.well-known/openid-configuration - Client ID: the Client ID from Pocket ID.
- Client Secret: the Client secret from Pocket ID.
- Claim Name:
groups - Display Name:
Pocket ID(or anything you want) - Scopes:
openid,profile,email,groups - Redirect URI:
https://minio-console.example.com/oauth_callback
- Config URL:
- You need to enter the client secret every time you edit the OpenID configuration. Instead of managing the secret, you can add a new one on the client’s Credentials tab in Pocket ID with Add client secret and enter that.
- If you use
MINIO_BROWSER_REDIRECT_URL=https://minio.example.com/minio-console/in your MinIO configuration, usehttps://minio.example.com/minio-console/oauth_callbackas the callback URL in Pocket ID and as the Redirect URI in the MinIO OpenID configuration.