-
user login to website at localhost:4219/login
-
express server receive the request, call passport.js to login by oidc
-
oidc service provider receive login, user give login permission
-
oidc service provider redirect user to oidc callback url, which is localhost:4219/login/oidc/callback
-
express server receive the callback, give it to passport.js to process
-
passport.js serialize the callback detail, which is the user information, and put it to express session, and redirect user to localhost:4219
-
whenever login user visit a website, we can obtain his info in req.session.passport.user