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)
256var 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)
53if (!jwtStore.Jwts.TryGetValue(id, out var jwt))
Helpers\DevJwtCliHelpers.cs (3)
150public static void PrintJwt(IReporter reporter, Jwt jwt, bool showAll, string outputFormat, JwtSecurityToken fullToken = null) 165static void PrintJwtJson(IReporter reporter, Jwt jwt, bool showAll, JwtSecurityToken fullToken) 170static 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)
173var deserialized = JsonSerializer.Deserialize<Dictionary<string, Jwt>>(output); 175var jwt = deserialized[id]; 407var deserialized = JsonSerializer.Deserialize<Jwt>(output); 465var deserialized = JsonSerializer.Deserialize<Jwt>(output);