Pocket ID Setup
- In Pocket ID, create a new OIDC client named
Memos
(or any name you prefer).
- (Optional) Set a logo for the OIDC client.
- Set the callback URL to:
https://< Memos Host >/auth/callback
- Copy the
Client ID
, Client Secret
, Authorization endpoint
, Token endpoint
, and User endpoint
for the next steps.
Gitea Setup
- Log in to Memos as an admin.
- Go to Settings → SSO → Create.
- Set Template to
Custom
.
- Enter the
Client ID
into the Client ID field.
- Enter the
Client Secret
into the Client secret field.
- Enter the
Authorization URL
into the Authorization endpoint field.
- Enter the
Token URL
into the Token endpoint field.
- Enter the
Userinfo URL
into the User endpoint field.
- Set Scopes to
openid email profile
.
- Set Identifier to
preferred_username
- Set Display Name to
profile
.
- Set Email to
email
.
- Save the settings and test the OAuth login.