admin管理员组文章数量:1320658
Have setup authentik with below config
({ id: "authentik", name: "Authentik", type: "oauth", version: "2.0", clientId: process.env.AUTHENTIK_CLIENT_ID, clientSecret: process.env.AUTHENTIK_CLIENT_SECRET, authorization: { url: process.env.AUTHENTIK_AUTH_URL, params: { redirect_uri: process.env.AUTHENTIK_REDIRECT_URI, scope: "openid profile email", }, }, tokenUrl: process.env.AUTHENTIK_TOKEN_URL, userinfo: { url: process.env.AUTHENTIK_USER_INFO_URL, }, profile(profile: User) { return { id: profile.id, name: profile.name, email: profile.email, team: profile.team, }; }, }) as OAuthConfig<User>
user is redirected to the authentik login page
on logging in, following error comes up:
error: [Error [OAuthCallbackError]: token_endpoint must be configured on the issuer] {
code: undefined
},
providerId: 'authentik',
message: 'token_endpoint must be configured on the issuer'
}
On digging in, I figured, code_verifier is not being set in the cookie. Is it something that nextjs does by default or do we need to write the logic to set this code?
本文标签: typescriptDoes nextauth set codeverifier cookie by defaultStack Overflow
版权声明:本文标题:typescript - Does nextauth set code_verifier cookie by default? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742066136a2418845.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论