-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathOpenIdClaims.cs
More file actions
153 lines (125 loc) · 3.51 KB
/
OpenIdClaims.cs
File metadata and controls
153 lines (125 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
using System;
namespace Waher.Security.JWT
{
/// <summary>
/// Static class containing predefined OpenID JWT claim names.
///
/// Source:
/// https://www.iana.org/assignments/jwt/jwt.xhtml#claims
/// </summary>
public static class OpenIdClaims
{
/// <summary>
/// Full Name
/// </summary>
public const string FullName = "name";
/// <summary>
/// Given name(s) or first name(s)
/// </summary>
public const string GivenName = "given_name";
/// <summary>
/// Surname(s) or last name(s)
/// </summary>
public const string Surname = "family_name";
/// <summary>
/// Middle name(s)
/// </summary>
public const string MiddleName = "middle_name";
/// <summary>
/// Casual name
/// </summary>
public const string CasualName = "nickname";
/// <summary>
/// Shorthand name by which the End-User wishes to be referred to
/// </summary>
public const string PreferredUserName = "preferred_username";
/// <summary>
/// Profile page URL
/// </summary>
public const string ProfilePageUrl = "profile";
/// <summary>
/// Profile picture URL
/// </summary>
public const string ProfilePictureUrl = "picture";
/// <summary>
/// Web page or blog URL
/// </summary>
public const string WebPage = "website";
/// <summary>
/// Preferred e-mail address
/// </summary>
public const string EMail = "email";
/// <summary>
/// True if the e-mail address has been verified; otherwise false
/// </summary>
public const string VerifiedEMail = "email_verified";
/// <summary>
/// Gender
/// </summary>
public const string Gender = "gender";
/// <summary>
/// Birthday
/// </summary>
public const string Birthday = "birthdate";
/// <summary>
/// Time zone
/// </summary>
public const string TimeZone = "zoneinfo";
/// <summary>
/// Locale
/// </summary>
public const string Locale = "locale";
/// <summary>
/// Preferred telephone number
/// </summary>
public const string PhoneNumber = "phone_number";
/// <summary>
/// True if the phone number has been verified; otherwise false
/// </summary>
public const string VerifiedPhoneNumber = "phone_number_verified";
/// <summary>
/// Preferred postal address
/// </summary>
public const string Address = "address";
/// <summary>
/// Time the information was last updated
/// </summary>
public const string UpdatedAt = "updated_at";
/// <summary>
/// Authorized party - the party to which the ID Token was issued
/// </summary>
public const string AuthorizedParty = "azp";
/// <summary>
/// Value used to associate a Client session with an ID Token
/// </summary>
public const string Nonce = "nonce";
/// <summary>
/// Time when the authentication occurred
/// </summary>
public const string AuthenticationTime = "auth_time";
/// <summary>
/// Access Token hash value
/// </summary>
public const string AccessTokenHash = "at_hash";
/// <summary>
/// Code hash value
/// </summary>
public const string CodeHash = "c_hash";
/// <summary>
/// Authentication Context Class Reference
/// </summary>
public const string AuthenticationContextClassReference = "acr";
/// <summary>
/// Authentication Methods References
/// </summary>
public const string AuthenticationMethodsReferences = "amr";
/// <summary>
/// Public key used to check the signature of an ID Token
/// </summary>
public const string PublicKey = "sub_jwk";
/// <summary>
/// Session ID
/// </summary>
public const string SessionId = "sid";
}
}