Help for integration with Authentik #763
-
Hello, I have some issues about the integration of openid-client with Authentik into k8s. My implementation is working on m'y local working station with the usage of keycloak instead of authentik. When I implement this code: app.get(
"/oidc/callback",
(req, res, next) => {
passport.authenticate("oidc", (err: any, user: any, info: any, status: any) => {
this.logger.info(`err: ${JSON.stringify(err)}`);
this.logger.info(`user: ${JSON.stringify(user)}`);
this.logger.info(`info: ${JSON.stringify(info)}`);
this.logger.info(`status: ${JSON.stringify(status)}`);
if (err) {
return next(err);
}
if (!user) {
return res.redirect("/login");
}
res.redirect("/");
})(req, res, next);
},
); I have this response: I implement into passeport strategy into nodejs express server. I don't know why... Do you have some ideas, please ? I use the oidc discovery url, client id/secret of the authentik provider, the scope "openid profile email". I thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I resolved my issue by implementing a param state into the passeport strategy. I have followed this link for that #760 (comment) Now I can authenticate the user by using Authentik into k8s. Best regards |
Beta Was this translation helpful? Give feedback.
I resolved my issue by implementing a param state into the passeport strategy.
I have followed this link for that #760 (comment)
Now I can authenticate the user by using Authentik into k8s.
Best regards