You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Footnotes
Need to find docs listing differences ↩
There are React ones but these don't work great with NextJS's server side stuff. ↩
The text was updated successfully, but these errors were encountered: