1 instantiation of Jwt
dotnet-user-jwts (1)
Helpers\Jwt.cs (1)
27
return new
Jwt
(token.Id, scheme, token.Subject, string.Join(", ", token.Audiences), token.ValidFrom, token.ValidTo, token.IssuedAt, encodedToken)
20 references to Jwt
dotnet-user-jwts (14)
Commands\CreateCommand.cs (2)
239
var
jwt =
Jwt
.Create(options.Scheme, jwtToken, JwtIssuer.WriteToken(jwtToken), options.Scopes, options.Roles, options.Claims);
Commands\ListCommand.cs (2)
61
reporter.Output(JsonSerializer.Serialize(Array.Empty<
Jwt
>(), JwtSerializerOptions.Default));
82
var
jwt = jwtRow.Value;
Commands\PrintCommand.cs (1)
47
if (!jwtStore.Jwts.TryGetValue(id, out
var
jwt))
Commands\RemoveCommand.cs (1)
40
if (!jwtStore.Jwts.TryGetValue(id, out
var
jwt))
Helpers\DevJwtCliHelpers.cs (3)
127
public static void PrintJwt(IReporter reporter,
Jwt
jwt, bool showAll, string outputFormat, JwtSecurityToken fullToken = null)
142
static void PrintJwtJson(IReporter reporter,
Jwt
jwt, bool showAll, JwtSecurityToken fullToken)
147
static void PrintJwtDefault(IReporter reporter,
Jwt
jwt, bool showAll, JwtSecurityToken fullToken)
Helpers\Jwt.cs (1)
19
public static
Jwt
Create(
Helpers\JwtStore.cs (4)
27
public IDictionary<string,
Jwt
> Jwts { get; private set; } = new Dictionary<string,
Jwt
>();
36
Jwts = JsonSerializer.Deserialize<IDictionary<string,
Jwt
>>(fileStream, JwtSerializerOptions.Default) ?? new Dictionary<string,
Jwt
>();
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (6)
UserJwtsTests.cs (6)
156
var deserialized = JsonSerializer.Deserialize<Dictionary<string,
Jwt
>>(output);
158
var
jwt = deserialized[id];
354
var
deserialized = JsonSerializer.Deserialize<
Jwt
>(output);
412
var
deserialized = JsonSerializer.Deserialize<
Jwt
>(output);