Skip to content

Commit

Permalink
Fixed snippet tag typo
Browse files Browse the repository at this point in the history
  • Loading branch information
irenepsmith committed Sep 13, 2022
1 parent 478b03f commit ea26a0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ public static async Task<bool> VerifyTOTP(
}
}

public static async Task<string> GetSecretForAppMFA(AmazonCognitoIdentityProviderClient identityProviderClient, string session)
/// <summary>
///
/// </summary>
/// <param name="identityProviderClient"></param>
/// <param name="session">The currently active session.</param>
/// <returns></returns>
public static async Task<string> GetSecretForAppMFA(
AmazonCognitoIdentityProviderClient identityProviderClient,
string session)
{
var softwareTokenRequest = new AssociateSoftwareTokenRequest
{
Expand All @@ -93,8 +101,7 @@ public static async Task<string> GetSecretForAppMFA(AmazonCognitoIdentityProvide
var tokenResponse = await identityProviderClient.AssociateSoftwareTokenAsync(softwareTokenRequest);
var secretCode = tokenResponse.SecretCode;

Console.WriteLine("Enter the following token into Google Authenticator");
Console.WriteLine(secretCode);
Console.WriteLine($"Enter the following token into Google Authenticator: {secretCode}");

return tokenResponse.Session;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// snippet-start:[Cognito_MVP.Usings]
// snippet-start:[dotnetv3.Cognito_MVP.Usings]
global using Amazon;
global using Amazon.CognitoIdentityProvider;
global using Amazon.CognitoIdentityProvider.Model;
global using Cognito_MVP;
// snippet-end:[Cognito_MVP.Usings]
// snippet-end:[dotnetv3.Cognito_MVP.Usings]

0 comments on commit ea26a0b

Please sign in to comment.