Finish basic scaffolding for service token v3

This commit is contained in:
Tuan Dang
2023-09-20 17:32:33 +01:00
parent 1cdd840485
commit 1896442168
25 changed files with 756 additions and 101 deletions
+3 -1
View File
@@ -30,6 +30,7 @@ router.get(
router.get("/redirect/github", authLimiter, (req, res, next) => {
passport.authenticate("github", {
session: false,
scope: [ 'user:email' ],
...(req.query.callback_port
? {
state: req.query.callback_port as string
@@ -43,7 +44,8 @@ router.get(
authLimiter,
passport.authenticate("github", {
failureRedirect: "/login/provider/error",
session: false
session: false,
scope: [ 'user:email' ]
}),
ssoController.redirectSSO
);