Logto
Setup Logto
You can register for Logto Cloud or self host.
- Create a new Application of type Third-party app (Traditional web) in the Logto Admin Console.
- Within the Project configure the Redirect URIs.
Specify the public URL of your application and append the path
/oidc/callback.
Eg.:https://my-app.mydomain.com/oidc/callback. - Enter the same for Post sign-out redirect URIs.
tip
If you want to use refresh tokens, you may need to enable the option Always issue refresh token in the Logto console.
It seems that Logto doesn't honor the offline_access scope.
Middleware Configuration
tip
You will find the client id and secret in the Endpoints & Credentials sections within Logto. The client id is called App ID in Logto.
http:
middlewares:
oidc-auth:
plugin:
traefik-oidc-auth:
Provider:
Url: "https://login.my-logto.com/oidc"
ClientId: "<YourAppId>"
ClientSecret: "<YourClientSecret>"
UsePkce: true
Scopes: ["openid", "profile", "email"]