@@ -33,7 +33,7 @@ public static class TokenExtensions
33
33
/// </exception>
34
34
public static JwtPayload CreateJwtPayload ( this Token token , ISystemClock clock , IdentityServerOptions options , ILogger logger )
35
35
{
36
- var payload = new JwtPayload (
36
+ var payload = new CustomJwtPayload (
37
37
token . Issuer ,
38
38
null ,
39
39
null ,
@@ -48,7 +48,7 @@ public static JwtPayload CreateJwtPayload(this Token token, ISystemClock clock,
48
48
var amrClaims = token . Claims . Where ( x => x . Type == JwtClaimTypes . AuthenticationMethod ) . ToArray ( ) ;
49
49
var scopeClaims = token . Claims . Where ( x => x . Type == JwtClaimTypes . Scope ) . ToArray ( ) ;
50
50
var jsonClaims = token . Claims . Where ( x => x . ValueType == IdentityServerConstants . ClaimValueTypes . Json ) . ToList ( ) ;
51
-
51
+
52
52
// add confirmation claim if present (it's JSON valued)
53
53
if ( token . Confirmation . IsPresent ( ) )
54
54
{
@@ -83,7 +83,7 @@ public static JwtPayload CreateJwtPayload(this Token token, ISystemClock clock,
83
83
var amrValues = amrClaims . Select ( x => x . Value ) . Distinct ( ) . ToArray ( ) ;
84
84
payload . Add ( JwtClaimTypes . AuthenticationMethod , amrValues ) ;
85
85
}
86
-
86
+
87
87
// deal with json types
88
88
// calling ToArray() to trigger JSON parsing once and so later
89
89
// collection identity comparisons work for the anonymous type
@@ -125,7 +125,7 @@ public static JwtPayload CreateJwtPayload(this Token token, ISystemClock clock,
125
125
var newArr = new List < JToken > ( ) ;
126
126
foreach ( var arrays in group )
127
127
{
128
- var arr = ( JArray ) arrays . JsonValue ;
128
+ var arr = ( JArray ) arrays . JsonValue ;
129
129
newArr . AddRange ( arr ) ;
130
130
}
131
131
0 commit comments