How do I access Microsoft.Owin.Security.xyz OnAuthenticated context AddClaims values?

前端 未结 3 1523
再見小時候
再見小時候 2020-12-04 17:02

I\'m trying to retrieve user properties that are returned as the OnAuthenticated context and added as a claims following this example: How to access Facebook private inform

3条回答
  •  鱼传尺愫
    2020-12-04 17:53

    In short the line that is required once AddClaim is used is as follows:

    Taken from johns answer above.

    ClaimsIdentity ext = await AuthenticationManager.GetExternalIdentityAsync(DefaultAuthenticationTypes.ExternalCookie);
    

提交回复
热议问题