You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dotnetGigs/Models/JwtIssuerOptions.cs
+11-57Lines changed: 11 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -7,91 +7,45 @@ namespace DotNetGigs.Models
7
7
publicclassJwtIssuerOptions
8
8
{
9
9
/// <summary>
10
-
/// "iss" (Issuer) Claim
10
+
/// 4.1.1. "iss" (Issuer) Claim - The "iss" (issuer) claim identifies the principal that issued the JWT.
11
11
/// </summary>
12
-
/// <remarks>The "iss" (issuer) claim identifies the principal that issued the
13
-
/// JWT. The processing of this claim is generally application specific.
14
-
/// The "iss" value is a case-sensitive string containing a StringOrURI
15
-
/// value. Use of this claim is OPTIONAL.</remarks>
16
12
publicstringIssuer{get;set;}
17
13
18
14
/// <summary>
19
-
/// "sub" (Subject) Claim
15
+
/// 4.1.2. "sub" (Subject) Claim - The "sub" (subject) claim identifies the principal that is the subject of the JWT.
20
16
/// </summary>
21
-
/// <remarks> The "sub" (subject) claim identifies the principal that is the
22
-
/// subject of the JWT. The claims in a JWT are normally statements
23
-
/// about the subject. The subject value MUST either be scoped to be
24
-
/// locally unique in the context of the issuer or be globally unique.
25
-
/// The processing of this claim is generally application specific. The
26
-
/// "sub" value is a case-sensitive string containing a StringOrURI
27
-
/// value. Use of this claim is OPTIONAL.</remarks>
28
17
publicstringSubject{get;set;}
29
18
30
19
/// <summary>
31
-
/// "aud" (Audience) Claim
20
+
/// 4.1.3. "aud" (Audience) Claim - The "aud" (audience) claim identifies the recipients that the JWT is intended for.
32
21
/// </summary>
33
-
/// <remarks>The "aud" (audience) claim identifies the recipients that the JWT is
34
-
/// intended for. Each principal intended to process the JWT MUST
35
-
/// identify itself with a value in the audience claim. If the principal
36
-
/// processing the claim does not identify itself with a value in the
37
-
/// "aud" claim when this claim is present, then the JWT MUST be
38
-
/// rejected. In the general case, the "aud" value is an array of case-
39
-
/// sensitive strings, each containing a StringOrURI value. In the
40
-
/// special case when the JWT has one audience, the "aud" value MAY be a
41
-
/// single case-sensitive string containing a StringOrURI value. The
42
-
/// interpretation of audience values is generally application specific.
43
-
/// Use of this claim is OPTIONAL.</remarks>
44
22
publicstringAudience{get;set;}
45
23
46
24
/// <summary>
47
-
/// "nbf" (Not Before) Claim (default is UTC NOW)
25
+
/// 4.1.4. "exp" (Expiration Time) Claim - The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing.
26
+
/// </summary>
27
+
publicDateTimeExpiration=>IssuedAt.Add(ValidFor);
28
+
29
+
/// <summary>
30
+
/// 4.1.5. "nbf" (Not Before) Claim - The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
48
31
/// </summary>
49
-
/// <remarks>The "nbf" (not before) claim identifies the time before which the JWT
50
-
/// MUST NOT be accepted for processing. The processing of the "nbf"
51
-
/// claim requires that the current date/time MUST be after or equal to
52
-
/// the not-before date/time listed in the "nbf" claim. Implementers MAY
53
-
/// provide for some small leeway, usually no more than a few minutes, to
54
-
/// account for clock skew. Its value MUST be a number containing a
55
-
/// NumericDate value. Use of this claim is OPTIONAL.</remarks>
0 commit comments