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)
42reporter.Output(Resources.FormatClearCommand_NoJwtsRemoved(project)); 48reporter.Output(Resources.FormatClearCommand_Permission(count, project)); 49reporter.Output("[Y]es / [N]o"); 52reporter.Output(Resources.ClearCommand_Canceled); 66reporter.Output(Resources.FormatClearCommand_Confirmed(count, project));
Commands\CreateCommand.cs (5)
254reporter.Output(jwt.Token); 257reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default)); 260reporter.Output(Resources.FormatCreateCommand_Confirmed(jwtToken.Id)); 261reporter.Output(optionsString); 262reporter.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)
51reporter.Output(Resources.FormatRemoveCommand_Confirmed(id));
Helpers\ConsoleTable.cs (1)
131_reporter.Output(builder.ToString());
Helpers\DevJwtCliHelpers.cs (16)
132reporter.Output(fullToken is not null ? jwt.Token : string.Empty); 144reporter.Output(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default)); 149reporter.Output(Resources.FormatPrintCommand_Confirmed(jwt.Id)); 150reporter.Output($"{Resources.JwtPrint_Id}: {jwt.Id}"); 151reporter.Output($"{Resources.JwtPrint_Name}: {jwt.Name}"); 152reporter.Output($"{Resources.JwtPrint_Scheme}: {jwt.Scheme}"); 153reporter.Output($"{Resources.JwtPrint_Audiences}: {jwt.Audience}"); 154reporter.Output($"{Resources.JwtPrint_NotBefore}: {jwt.NotBefore:O}"); 155reporter.Output($"{Resources.JwtPrint_ExpiresOn}: {jwt.Expires:O}"); 156reporter.Output($"{Resources.JwtPrint_IssuedOn}: {jwt.Issued:O}"); 163reporter.Output($"{Resources.JwtPrint_Scopes}: {scopesValue}"); 171reporter.Output($"{Resources.JwtPrint_Roles}: [{rolesValue}]"); 179reporter.Output($"{Resources.JwtPrint_CustomClaims}: [{customClaimsValue}]"); 184reporter.Output($"{Resources.JwtPrint_TokenHeader}: {fullToken.Header.SerializeToJson()}"); 185reporter.Output($"{Resources.JwtPrint_TokenPayload}: {fullToken.Payload.SerializeToJson()}"); 189reporter.Output($"{tokenValueFieldName}: {jwt.Token}");
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
39reporter.Output(SecretsHelpersResources.FormatMessage_ProjectAlreadyInitialized(projectPath)); 75reporter.Output(SecretsHelpersResources.FormatMessage_SetUserSecretsIdForProject(newSecretsId, projectPath));