owin tutorial: minor fix with claim types
This commit is contained in:
Родитель
4485fc7235
Коммит
b5843d9838
|
@ -66,7 +66,7 @@ Once the user is successfully authenticated with the application, a `ClaimsPrinc
|
|||
|
||||
public ActionResult Index()
|
||||
{
|
||||
string email = ClaimsPrincipal.Current.FindFirst("email").Value;
|
||||
string email = ClaimsPrincipal.Current.FindFirst(ClaimTypes.Email).Value;
|
||||
}
|
||||
|
||||
The user profile is normalized regardless of where the user came from. We will always include these: `user_id`, `name`, `email`, `nickname`, and `picture`. For more information about the user profile, see [this article](user-profile).
|
||||
|
|
Загрузка…
Ссылка в новой задаче