-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Motivation
Currently we use the nextjs-auth0 package despite using Keycloak as our auth provider. Since auth0 doesn't exactly implement OAuth 2.x and OIDC 1, we should ideally not be using this package. Keycloak lacks good off the shelf adapters for NextJS. 2
Options
Implement Own Adapater
This shouldn't be too tricky as it's just web requests for tokens. This will need to integrate with the different parts of NextJS: API routes, middleware, RSCs.
- https://github.com/badgateway/oauth2-client
- https://github.com/AxaFrance/oidc-client
- https://github.com/authts/oidc-client-ts
- https://github.com/Archelyst/oauth2-pkce