2 implementations of Output
dotnet-user-jwts (2)
src\aspnetcore\src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
57
public virtual void
Output
(string message)
src\aspnetcore\src\Tools\Shared\CommandLine\NullReporter.cs (1)
20
public void
Output
(string message)
41 references to Output
dotnet-user-jwts (41)
Commands\ClearCommand.cs (5)
58
reporter.
Output
(Resources.FormatClearCommand_NoJwtsRemoved(project));
64
reporter.
Output
(Resources.FormatClearCommand_Permission(count, project));
65
reporter.
Output
("[Y]es / [N]o");
68
reporter.
Output
(Resources.ClearCommand_Canceled);
82
reporter.
Output
(Resources.FormatClearCommand_Confirmed(count, project));
Commands\CreateCommand.cs (5)
274
reporter.
Output
(jwt.Token);
277
reporter.
Output
(JsonSerializer.Serialize(jwt, JwtSerializerContext.Default.Jwt));
280
reporter.
Output
(Resources.FormatCreateCommand_Confirmed(jwtToken.Id));
281
reporter.
Output
(optionsString);
282
reporter.
Output
($"{Resources.JwtPrint_Token}: {jwt.Token}");
Commands\KeyCommand.cs (5)
69
reporter.
Output
(Resources.KeyCommand_Permission);
73
reporter.
Output
(Resources.KeyCommand_Canceled);
79
reporter.
Output
(Resources.FormatKeyCommand_KeyCreated(Convert.ToBase64String(key)));
87
reporter.
Output
(Resources.KeyCommand_KeyNotFound);
91
reporter.
Output
(Resources.FormatKeyCommand_Confirmed(Convert.ToBase64String(signingKeyMaterial)));
Commands\ListCommand.cs (5)
62
reporter.
Output
(JsonSerializer.Serialize(jwts, JwtSerializerContext.Default.IDictionaryStringJwt));
66
reporter.
Output
(JsonSerializer.Serialize(Array.Empty<Jwt>(), JwtSerializerContext.Default.JwtArray));
72
reporter.
Output
(Resources.FormatListCommand_Project(project));
73
reporter.
Output
(Resources.FormatListCommand_UserSecretsId(userSecretsId));
102
reporter.
Output
(Resources.ListCommand_NoJwts);
Commands\PrintCommand.cs (1)
55
reporter.
Output
(Resources.FormatPrintCommand_NoJwtFound(id));
Commands\RemoveCommand.cs (1)
69
reporter.
Output
(Resources.FormatRemoveCommand_Confirmed(id));
Helpers\ConsoleTable.cs (1)
131
_reporter.
Output
(builder.ToString());
Helpers\DevJwtCliHelpers.cs (16)
235
reporter.
Output
(fullToken is not null ? jwt.Token : string.Empty);
247
reporter.
Output
(JsonSerializer.Serialize(jwt, JwtSerializerContext.Default.Jwt));
252
reporter.
Output
(Resources.FormatPrintCommand_Confirmed(jwt.Id));
253
reporter.
Output
($"{Resources.JwtPrint_Id}: {jwt.Id}");
254
reporter.
Output
($"{Resources.JwtPrint_Name}: {jwt.Name}");
255
reporter.
Output
($"{Resources.JwtPrint_Scheme}: {jwt.Scheme}");
256
reporter.
Output
($"{Resources.JwtPrint_Audiences}: {jwt.Audience}");
257
reporter.
Output
($"{Resources.JwtPrint_NotBefore}: {jwt.NotBefore:O}");
258
reporter.
Output
($"{Resources.JwtPrint_ExpiresOn}: {jwt.Expires:O}");
259
reporter.
Output
($"{Resources.JwtPrint_IssuedOn}: {jwt.Issued:O}");
266
reporter.
Output
($"{Resources.JwtPrint_Scopes}: {scopesValue}");
274
reporter.
Output
($"{Resources.JwtPrint_Roles}: [{rolesValue}]");
282
reporter.
Output
($"{Resources.JwtPrint_CustomClaims}: [{customClaimsValue}]");
287
reporter.
Output
($"{Resources.JwtPrint_TokenHeader}: {fullToken.Header.SerializeToJson()}");
288
reporter.
Output
($"{Resources.JwtPrint_TokenPayload}: {fullToken.Payload.SerializeToJson()}");
292
reporter.
Output
($"{tokenValueFieldName}: {jwt.Token}");
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (2)
39
reporter.
Output
(SecretsHelpersResources.FormatMessage_ProjectAlreadyInitialized(projectPath));
75
reporter.
Output
(SecretsHelpersResources.FormatMessage_SetUserSecretsIdForProject(newSecretsId, projectPath));