3 implementations of Output
dotnet-user-jwts (2)
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
57public virtual void Output(string message)
src\Tools\Shared\CommandLine\NullReporter.cs (1)
20public void Output(string message)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestReporter.cs (1)
22public void Output(string message)
41 references to Output
dotnet-user-jwts (41)
Commands\ClearCommand.cs (5)
53reporter.Output(Resources.FormatClearCommand_NoJwtsRemoved(project)); 59reporter.Output(Resources.FormatClearCommand_Permission(count, project)); 60reporter.Output("[Y]es / [N]o"); 63reporter.Output(Resources.ClearCommand_Canceled); 77reporter.Output(Resources.FormatClearCommand_Confirmed(count, project));
Commands\CreateCommand.cs (5)
271reporter.Output(jwt.Token); 274reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default)); 277reporter.Output(Resources.FormatCreateCommand_Confirmed(jwtToken.Id)); 278reporter.Output(optionsString); 279reporter.Output($"{Resources.JwtPrint_Token}: {jwt.Token}");
Commands\KeyCommand.cs (5)
63reporter.Output(Resources.KeyCommand_Permission); 67reporter.Output(Resources.KeyCommand_Canceled); 73reporter.Output(Resources.FormatKeyCommand_KeyCreated(Convert.ToBase64String(key))); 81reporter.Output(Resources.KeyCommand_KeyNotFound); 85reporter.Output(Resources.FormatKeyCommand_Confirmed(Convert.ToBase64String(signingKeyMaterial)));
Commands\ListCommand.cs (5)
57reporter.Output(JsonSerializer.Serialize(jwts, JwtSerializerOptions.Default)); 61reporter.Output(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerOptions.Default)); 67reporter.Output(Resources.FormatListCommand_Project(project)); 68reporter.Output(Resources.FormatListCommand_UserSecretsId(userSecretsId)); 97reporter.Output(Resources.ListCommand_NoJwts);
Commands\PrintCommand.cs (1)
49reporter.Output(Resources.FormatPrintCommand_NoJwtFound(id));
Commands\RemoveCommand.cs (1)
64reporter.Output(Resources.FormatRemoveCommand_Confirmed(id));
Helpers\ConsoleTable.cs (1)
131_reporter.Output(builder.ToString());
Helpers\DevJwtCliHelpers.cs (16)
155reporter.Output(fullToken is not null ? jwt.Token : string.Empty); 167reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default)); 172reporter.Output(Resources.FormatPrintCommand_Confirmed(jwt.Id)); 173reporter.Output($"{Resources.JwtPrint_Id}: {jwt.Id}"); 174reporter.Output($"{Resources.JwtPrint_Name}: {jwt.Name}"); 175reporter.Output($"{Resources.JwtPrint_Scheme}: {jwt.Scheme}"); 176reporter.Output($"{Resources.JwtPrint_Audiences}: {jwt.Audience}"); 177reporter.Output($"{Resources.JwtPrint_NotBefore}: {jwt.NotBefore:O}"); 178reporter.Output($"{Resources.JwtPrint_ExpiresOn}: {jwt.Expires:O}"); 179reporter.Output($"{Resources.JwtPrint_IssuedOn}: {jwt.Issued:O}"); 186reporter.Output($"{Resources.JwtPrint_Scopes}: {scopesValue}"); 194reporter.Output($"{Resources.JwtPrint_Roles}: [{rolesValue}]"); 202reporter.Output($"{Resources.JwtPrint_CustomClaims}: [{customClaimsValue}]"); 207reporter.Output($"{Resources.JwtPrint_TokenHeader}: {fullToken.Header.SerializeToJson()}"); 208reporter.Output($"{Resources.JwtPrint_TokenPayload}: {fullToken.Payload.SerializeToJson()}"); 212reporter.Output($"{tokenValueFieldName}: {jwt.Token}");
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
39reporter.Output(SecretsHelpersResources.FormatMessage_ProjectAlreadyInitialized(projectPath)); 75reporter.Output(SecretsHelpersResources.FormatMessage_SetUserSecretsIdForProject(newSecretsId, projectPath));