26.OpenIdConnect two ways to obtain user information





OAuth openId the foundation, after which the following red frame also return to get the Authorization Code IdToken.


Returned with IdToken and AccessToken. IdToken will include the user's information Claims. Through our ProfileService return back.

Here is set to True, it will put the new user's information is contained in IdToken which returned to the user, you can use a third party to get IdToken the need to go get AccessToken, this is one way



another way IdToken which do not contain information about users. It will have a UserInfoEndpoint.
Return UserInfoClaims accessToken to visit UserInfoEndPoint by


which we go through obtain information UserInfo AccessToken returned in postMan inside



the client requests the time settings
,
CodeIdTokenToken most convenient way to IdToken and AccessToken return

us F12 can see into the actual value of this constant CodeIdTokenToken, which contains Code, id_token three token and the information


above is OpenIdConnect returns user information in two ways






 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/10983051.html