Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 386 Bytes

get-the-user-email-address-when-using-oauth.md

File metadata and controls

10 lines (6 loc) · 386 Bytes

Get the user email address when using OAuth

When creating a login page with an OAuth provider (Facebook, Google, Microsoft or Twitter), you can get additional information about the user logging.

To get an email address, use the $ClaimsPrinciple variable and find the claim for the email address.

($ClaimsPrinciple.claims | where type -like "*emailaddress" ).Value