1 instantiation of Jwt
dotnet-user-jwts (1)
Helpers\Jwt.cs (1)
27return 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)
239var jwt = Jwt.Create(options.Scheme, jwtToken, JwtIssuer.WriteToken(jwtToken), options.Scopes, options.Roles, options.Claims);
Commands\ListCommand.cs (2)
61reporter.Output(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerOptions.Default)); 82var jwt = jwtRow.Value;
Commands\PrintCommand.cs (1)
47if (!jwtStore.Jwts.TryGetValue(id, out var jwt))
Commands\RemoveCommand.cs (1)
40if (!jwtStore.Jwts.TryGetValue(id, out var jwt))
Helpers\DevJwtCliHelpers.cs (3)
127public static void PrintJwt(IReporter reporter, Jwt jwt, bool showAll, string outputFormat, JwtSecurityToken fullToken = null) 142static void PrintJwtJson(IReporter reporter, Jwt jwt, bool showAll, JwtSecurityToken fullToken) 147static void PrintJwtDefault(IReporter reporter, Jwt jwt, bool showAll, JwtSecurityToken fullToken)
Helpers\Jwt.cs (1)
19public static Jwt Create(
Helpers\JwtStore.cs (4)
27public IDictionary<string, Jwt> Jwts { get; private set; } = new Dictionary<string, Jwt>(); 36Jwts = JsonSerializer.Deserialize<IDictionary<string, Jwt>>(fileStream, JwtSerializerOptions.Default) ?? new Dictionary<string, Jwt>();
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (6)
UserJwtsTests.cs (6)
119var deserialized = JsonSerializer.Deserialize<Dictionary<string, Jwt>>(output); 121var jwt = deserialized[id]; 317var deserialized = JsonSerializer.Deserialize<Jwt>(output); 375var deserialized = JsonSerializer.Deserialize<Jwt>(output);