42 references to ClaimActions
Identity.ExternalClaims (1)
Startup.cs (1)
49
o.
ClaimActions
.MapJsonKey(ClaimTypes.Gender, "gender");
Microsoft.AspNetCore.Authentication.Facebook (14)
FacebookOptions.cs (14)
32
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "id");
33
ClaimActions
.MapJsonSubKey("urn:facebook:age_range_min", "age_range", "min");
34
ClaimActions
.MapJsonSubKey("urn:facebook:age_range_max", "age_range", "max");
35
ClaimActions
.MapJsonKey(ClaimTypes.DateOfBirth, "birthday");
36
ClaimActions
.MapJsonKey(ClaimTypes.Email, "email");
37
ClaimActions
.MapJsonKey(ClaimTypes.Name, "name");
38
ClaimActions
.MapJsonKey(ClaimTypes.GivenName, "first_name");
39
ClaimActions
.MapJsonKey("urn:facebook:middle_name", "middle_name");
40
ClaimActions
.MapJsonKey(ClaimTypes.Surname, "last_name");
41
ClaimActions
.MapJsonKey(ClaimTypes.Gender, "gender");
42
ClaimActions
.MapJsonKey("urn:facebook:link", "link");
43
ClaimActions
.MapJsonSubKey("urn:facebook:location", "location", "name");
44
ClaimActions
.MapJsonKey(ClaimTypes.Locality, "locale");
45
ClaimActions
.MapJsonKey("urn:facebook:timezone", "timezone");
Microsoft.AspNetCore.Authentication.Google (7)
GoogleOptions.cs (7)
29
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "id"); // v2
30
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "sub"); // v3
31
ClaimActions
.MapJsonKey(ClaimTypes.Name, "name");
32
ClaimActions
.MapJsonKey(ClaimTypes.GivenName, "given_name");
33
ClaimActions
.MapJsonKey(ClaimTypes.Surname, "family_name");
34
ClaimActions
.MapJsonKey("urn:google:profile", "link");
35
ClaimActions
.MapJsonKey(ClaimTypes.Email, "email");
Microsoft.AspNetCore.Authentication.MicrosoftAccount (5)
MicrosoftAccountOptions.cs (5)
27
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "id");
28
ClaimActions
.MapJsonKey(ClaimTypes.Name, "displayName");
29
ClaimActions
.MapJsonKey(ClaimTypes.GivenName, "givenName");
30
ClaimActions
.MapJsonKey(ClaimTypes.Surname, "surname");
31
ClaimActions
.MapCustomJson(ClaimTypes.Email, user => user.GetString("mail") ?? user.GetString("userPrincipalName"));
Microsoft.AspNetCore.Authentication.OAuth (1)
Events\OAuthCreatingTicketContext.cs (1)
115
foreach (var action in Options.
ClaimActions
)
SocialSample (14)
Startup.cs (14)
74
o.
ClaimActions
.MapJsonSubKey("urn:google:image", "image", "url");
75
o.
ClaimActions
.Remove(ClaimTypes.GivenName);
126
o.
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "id");
127
o.
ClaimActions
.MapJsonKey(ClaimTypes.Name, "login");
128
o.
ClaimActions
.MapJsonKey("urn:github:name", "name");
129
o.
ClaimActions
.MapJsonKey(ClaimTypes.Email, "email", ClaimValueTypes.Email);
130
o.
ClaimActions
.MapJsonKey("urn:github:url", "url");
181
o.
ClaimActions
.MapJsonKey(ClaimTypes.NameIdentifier, "sub");
182
o.
ClaimActions
.MapJsonKey(ClaimTypes.Name, "name");
183
o.
ClaimActions
.MapJsonKey(ClaimTypes.Email, "email", ClaimValueTypes.Email);
184
o.
ClaimActions
.MapJsonKey(ClaimTypes.GivenName, "given_name");
185
o.
ClaimActions
.MapJsonKey(ClaimTypes.Surname, "family_name");
186
o.
ClaimActions
.MapJsonKey("email_verified", "email_verified");
187
o.
ClaimActions
.MapJsonKey(ClaimTypes.Uri, "website");