3 implementations of Output
dotnet-user-jwts (2)
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
57
public virtual void
Output
(string message)
src\Tools\Shared\CommandLine\NullReporter.cs (1)
20
public void
Output
(string message)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestReporter.cs (1)
22
public void
Output
(string message)
41 references to Output
dotnet-user-jwts (41)
Commands\ClearCommand.cs (5)
42
reporter.
Output
(Resources.FormatClearCommand_NoJwtsRemoved(project));
48
reporter.
Output
(Resources.FormatClearCommand_Permission(count, project));
49
reporter.
Output
("[Y]es / [N]o");
52
reporter.
Output
(Resources.ClearCommand_Canceled);
66
reporter.
Output
(Resources.FormatClearCommand_Confirmed(count, project));
Commands\CreateCommand.cs (5)
254
reporter.
Output
(jwt.Token);
257
reporter.
Output
(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default));
260
reporter.
Output
(Resources.FormatCreateCommand_Confirmed(jwtToken.Id));
261
reporter.
Output
(optionsString);
262
reporter.
Output
($"{Resources.JwtPrint_Token}: {jwt.Token}");
Commands\KeyCommand.cs (5)
63
reporter.
Output
(Resources.KeyCommand_Permission);
67
reporter.
Output
(Resources.KeyCommand_Canceled);
73
reporter.
Output
(Resources.FormatKeyCommand_KeyCreated(Convert.ToBase64String(key)));
81
reporter.
Output
(Resources.KeyCommand_KeyNotFound);
85
reporter.
Output
(Resources.FormatKeyCommand_Confirmed(Convert.ToBase64String(signingKeyMaterial)));
Commands\ListCommand.cs (5)
57
reporter.
Output
(JsonSerializer.Serialize(jwts, JwtSerializerOptions.Default));
61
reporter.
Output
(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerOptions.Default));
67
reporter.
Output
(Resources.FormatListCommand_Project(project));
68
reporter.
Output
(Resources.FormatListCommand_UserSecretsId(userSecretsId));
97
reporter.
Output
(Resources.ListCommand_NoJwts);
Commands\PrintCommand.cs (1)
49
reporter.
Output
(Resources.FormatPrintCommand_NoJwtFound(id));
Commands\RemoveCommand.cs (1)
51
reporter.
Output
(Resources.FormatRemoveCommand_Confirmed(id));
Helpers\ConsoleTable.cs (1)
131
_reporter.
Output
(builder.ToString());
Helpers\DevJwtCliHelpers.cs (16)
132
reporter.
Output
(fullToken is not null ? jwt.Token : string.Empty);
144
reporter.
Output
(JsonSerializer.Serialize(jwt, JwtSerializerOptions.Default));
149
reporter.
Output
(Resources.FormatPrintCommand_Confirmed(jwt.Id));
150
reporter.
Output
($"{Resources.JwtPrint_Id}: {jwt.Id}");
151
reporter.
Output
($"{Resources.JwtPrint_Name}: {jwt.Name}");
152
reporter.
Output
($"{Resources.JwtPrint_Scheme}: {jwt.Scheme}");
153
reporter.
Output
($"{Resources.JwtPrint_Audiences}: {jwt.Audience}");
154
reporter.
Output
($"{Resources.JwtPrint_NotBefore}: {jwt.NotBefore:O}");
155
reporter.
Output
($"{Resources.JwtPrint_ExpiresOn}: {jwt.Expires:O}");
156
reporter.
Output
($"{Resources.JwtPrint_IssuedOn}: {jwt.Issued:O}");
163
reporter.
Output
($"{Resources.JwtPrint_Scopes}: {scopesValue}");
171
reporter.
Output
($"{Resources.JwtPrint_Roles}: [{rolesValue}]");
179
reporter.
Output
($"{Resources.JwtPrint_CustomClaims}: [{customClaimsValue}]");
184
reporter.
Output
($"{Resources.JwtPrint_TokenHeader}: {fullToken.Header.SerializeToJson()}");
185
reporter.
Output
($"{Resources.JwtPrint_TokenPayload}: {fullToken.Payload.SerializeToJson()}");
189
reporter.
Output
($"{tokenValueFieldName}: {jwt.Token}");
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
39
reporter.
Output
(SecretsHelpersResources.FormatMessage_ProjectAlreadyInitialized(projectPath));
75
reporter.
Output
(SecretsHelpersResources.FormatMessage_SetUserSecretsIdForProject(newSecretsId, projectPath));