Performing Google Federated Login/oAuth2 after initial Authentication

前端 未结 4 1984
你的背包
你的背包 2021-01-04 05:36

I am trying to support \"Hybrid\" Federated Login and oAuth2 (using logic from this document) for a webservice which will:

  1. support Sign in using your G
4条回答
  •  南方客
    南方客 (楼主)
    2021-01-04 06:14

    When the user is redirected back, you call the second request from your own (server-side?) code, and get their email address. When you successfully get it, that means that the user is logged on. You can add it to the session (e.g. as cookie), and as long as you have it, the user is logged on. You make the user log out by forgetting the email address, so by clearing the session/cookies.

提交回复
热议问题