2 instantiations of Jwt
dotnet-user-jwts (2)
_generated\0\JwtSerializerContext.Jwt.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
((string)args[0], (string)args[1], (string)args[2], (string)args[3], (global::System.DateTimeOffset)args[4], (global::System.DateTimeOffset)args[5], (global::System.DateTimeOffset)args[6], (string)args[7]),
Helpers\Jwt.cs (1)
27
return new
Jwt
(token.Id, scheme, token.Subject, string.Join(", ", token.Audiences), token.ValidFrom, token.ValidTo, token.IssuedAt, encodedToken)
116 references to Jwt
dotnet-user-jwts (116)
_generated\0\JwtSerializerContext.Jwt.g.cs (74)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>? _Jwt;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
> Jwt
22
get => _Jwt ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
> Create_Jwt(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(string), typeof(string), typeof(global::System.DateTimeOffset), typeof(global::System.DateTimeOffset), typeof(global::System.DateTimeOffset), typeof(string)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Id,
61
Setter = static (obj, value) => __set_Jwt_Id((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Id", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Scheme,
81
Setter = static (obj, value) => __set_Jwt_Scheme((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Scheme", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Name,
101
Setter = static (obj, value) => __set_Jwt_Name((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
120
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Audience,
121
Setter = static (obj, value) => __set_Jwt_Audience((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
128
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Audience", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
138
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
140
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).NotBefore,
141
Setter = static (obj, value) => __set_Jwt_NotBefore((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
148
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("NotBefore", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
158
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
160
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Expires,
161
Setter = static (obj, value) => __set_Jwt_Expires((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
168
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Expires", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
178
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
180
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Issued,
181
Setter = static (obj, value) => __set_Jwt_Issued((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
188
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Issued", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
198
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
200
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Token,
201
Setter = static (obj, value) => __set_Jwt_Token((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj, value!),
208
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Token", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
218
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
220
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Scopes,
221
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Scopes = value!,
228
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null),
238
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
240
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Roles,
241
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).Roles = value!,
248
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("Roles", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IEnumerable<string>), global::System.Array.Empty<global::System.Type>(), null),
258
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
),
260
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).CustomClaims,
261
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)obj).CustomClaims = value!,
268
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
).GetProperty("CustomClaims", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
278
private void JwtSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
? value)
288
writer.WriteString(PropName_Id, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Id);
289
writer.WriteString(PropName_Scheme, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Scheme);
290
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Name);
291
writer.WriteString(PropName_Audience, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Audience);
292
writer.WriteString(PropName_NotBefore, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).NotBefore);
293
writer.WriteString(PropName_Expires, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Expires);
294
writer.WriteString(PropName_Issued, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Issued);
295
writer.WriteString(PropName_Token, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Token);
297
IEnumerableStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Scopes);
299
IEnumerableStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).Roles);
301
IDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
)value).CustomClaims);
390
private static extern void __set_Jwt_Id(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, string value);
392
private static extern void __set_Jwt_Scheme(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, string value);
394
private static extern void __set_Jwt_Name(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, string value);
396
private static extern void __set_Jwt_Audience(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, string value);
398
private static extern void __set_Jwt_NotBefore(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, global::System.DateTimeOffset value);
400
private static extern void __set_Jwt_Expires(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, global::System.DateTimeOffset value);
402
private static extern void __set_Jwt_Issued(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, global::System.DateTimeOffset value);
404
private static extern void __set_Jwt_Token(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
obj, string value);
_generated\1\JwtSerializerContext.JwtArray.g.cs (10)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]>? _JwtArray;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]> JwtArray
22
get => _JwtArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]> Create_JwtArray(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>(options, info);
47
private void JwtArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]? value)
_generated\12\JwtSerializerContext.GetJsonTypeInfo.g.cs (3)
22
if (type == typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
))
26
if (type == typeof(global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
[]))
38
if (type == typeof(global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>))
_generated\4\JwtSerializerContext.IDictionaryStringJwt.g.cs (13)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>>? _IDictionaryStringJwt;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>> IDictionaryStringJwt
22
get => _IDictionaryStringJwt ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>> Create_IDictionaryStringJwt(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>>
31
ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>(),
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIDictionaryInfo<global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>, string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>(options, info);
47
private void IDictionaryStringJwtSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IDictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
>? value)
57
foreach (global::System.Collections.Generic.KeyValuePair<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.
Jwt
> entry in value)
Commands\CreateCommand.cs (2)
259
var
jwt =
Jwt
.Create(options.Scheme, jwtToken, JwtIssuer.WriteToken(jwtToken), options.Scopes, options.Roles, options.Claims);
Commands\ListCommand.cs (2)
66
reporter.Output(JsonSerializer.Serialize(Array.Empty<
Jwt
>(), JwtSerializerContext.Default.JwtArray));
87
var
jwt = jwtRow.Value;
Commands\PrintCommand.cs (1)
53
if (!jwtStore.Jwts.TryGetValue(id, out
var
jwt))
Commands\RemoveCommand.cs (1)
58
if (!jwtStore.Jwts.TryGetValue(id, out
var
jwt))
Helpers\DevJwtCliHelpers.cs (3)
230
public static void PrintJwt(IReporter reporter,
Jwt
jwt, bool showAll, string outputFormat, JwtSecurityToken fullToken = null)
245
static void PrintJwtJson(IReporter reporter,
Jwt
jwt, bool showAll, JwtSecurityToken fullToken)
250
static void PrintJwtDefault(IReporter reporter,
Jwt
jwt, bool showAll, JwtSecurityToken fullToken)
Helpers\Jwt.cs (1)
19
public static
Jwt
Create(
Helpers\JwtSerializerOptions.cs (3)
21
[JsonSerializable(typeof(IDictionary<string,
Jwt
>))]
22
[JsonSerializable(typeof(
Jwt
))]
23
[JsonSerializable(typeof(
Jwt
[]))]
Helpers\JwtStore.cs (3)
24
public IDictionary<string,
Jwt
> Jwts { get; private set; } = new Dictionary<string,
Jwt
>();
33
Jwts = JsonSerializer.Deserialize(fileStream, JwtSerializerContext.Default.IDictionaryStringJwt) ?? new Dictionary<string,
Jwt
>();