|
|
|
@ -160,9 +160,9 @@ const initializePassport = async () => {
|
|
|
|
|
passport.use(new GitHubStrategy({
|
|
|
|
|
authorizationURL: 'https://git.cereg.com/login/oauth/authorize',
|
|
|
|
|
tokenURL: 'https://git.cereg.com/login/oauth/access_token',
|
|
|
|
|
clientID: clientIdGitLabLogin,
|
|
|
|
|
clientSecret: clientSecretGitLabLogin,
|
|
|
|
|
callbackURL: "/api/v1/sso/gitlab",
|
|
|
|
|
clientID: clientIdGitHubLogin,
|
|
|
|
|
clientSecret: clientSecretGitHubLogin,
|
|
|
|
|
callbackURL: "/api/v1/sso/github",
|
|
|
|
|
scope: ["user:email"]
|
|
|
|
|
},
|
|
|
|
|
async (req : express.Request, accessToken : any, refreshToken : any, profile : any, done : any) => {
|
|
|
|
|