Skip to content

Commit 3d14f32

Browse files
rlhagermcpyle0819
authored andcommitted
Cognito updates for v4.
1 parent d3630a9 commit 3d14f32

File tree

6 files changed

+35
-9
lines changed

6 files changed

+35
-9
lines changed

dotnetv3/Cognito/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ These examples also require the following resources:
3434

3535

3636
To create these resources, run the AWS CloudFormation script in the
37-
[resources/cdk/cognito_scenario_user_pool_with_mfa](../../../resources/cdk/cognito_scenario_user_pool_with_mfa)
37+
[resources/cdk/cognito_scenario_user_pool_with_mfa](../../resources/cdk/cognito_scenario_user_pool_with_mfa)
3838
folder. This script outputs a user pool ID and a client ID that you can use to run
3939
the scenario.
4040
<!--custom.prerequisites.end-->

dotnetv4/Cognito/Actions/HelloCognito.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static async Task Main(string[] args)
5151
{
5252
userPools.ForEach(userPool =>
5353
{
54-
Console.WriteLine($"{userPool.Name}\t{userPool.Id}\t{userPool.Status}");
54+
Console.WriteLine($"{userPool.Name}\t{userPool.Id}");
5555
});
5656
}
5757
else

dotnetv4/Cognito/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _Amazon Cognito Identity Provider handles user authentication and authorization
2323

2424
### Prerequisites
2525

26-
For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3` folder.
26+
For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv4` folder.
2727

2828

2929
<!--custom.prerequisites.start-->
@@ -34,7 +34,7 @@ These examples also require the following resources:
3434

3535

3636
To create these resources, run the AWS CloudFormation script in the
37-
[resources/cdk/cognito_scenario_user_pool_with_mfa](../../../resources/cdk/cognito_scenario_user_pool_with_mfa)
37+
[resources/cdk/cognito_scenario_user_pool_with_mfa](../../resources/cdk/cognito_scenario_user_pool_with_mfa)
3838
folder. This script outputs a user pool ID and a client ID that you can use to run
3939
the scenario.
4040
<!--custom.prerequisites.end-->
@@ -72,7 +72,7 @@ functions within the same service.
7272
### Instructions
7373

7474
For general instructions to run the examples, see the
75-
[README](../README.md#building-and-running-the-code-examples) in the `dotnetv3` folder.
75+
[README](../README.md#building-and-running-the-code-examples) in the `dotnetv4` folder.
7676

7777
Some projects might include a settings.json file. Before compiling the project,
7878
you can change these values to match your own account and resources. Alternatively,
@@ -115,7 +115,7 @@ This example shows you how to do the following:
115115

116116

117117
To find instructions for running these tests, see the [README](../README.md#Tests)
118-
in the `dotnetv3` folder.
118+
in the `dotnetv4` folder.
119119

120120

121121

dotnetv4/Cognito/Scenarios/Cognito_Basics/CognitoBasics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static async Task<bool> RunScenario(CognitoWrapper cognitoWrapper, IConfi
120120
var code = _interactive ? Console.ReadLine() : "-";
121121

122122
await cognitoWrapper.ConfirmSignupAsync(clientId, code, userName);
123-
123+
124124

125125
UiMethods.DisplayTitle("Checking status");
126126
Console.WriteLine($"Rechecking the status of {userName} in the user pool");
@@ -148,7 +148,7 @@ await cognitoWrapper.AdminRespondToAuthChallengeAsync(userName, clientId,
148148
authCode, authSession, poolId);
149149
Console.WriteLine(
150150
$"Authenticated and received access token: {authResult.AccessToken}");
151-
151+
152152

153153
Console.WriteLine(new string('-', 80));
154154
Console.WriteLine("Cognito scenario is complete.");

dotnetv4/Cognito/Tests/CognitoBasicsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace CognitoWrapperTests;
1616
/// </summary>
1717
public class CognitoBasicsTests
1818
{
19-
private ILoggerFactory _loggerFactory;
19+
private ILoggerFactory _loggerFactory = null!;
2020

2121
[Trait("Category", "Unit")]
2222
[Fact]

dotnetv4/DotNetV4Examples.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basics", "EC2\Scenarios\EC2
119119
EndProject
120120
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EC2Actions", "EC2\Actions\EC2Actions.csproj", "{0633CB2B-3508-48E5-A8C2-427A83A5CA6E}"
121121
EndProject
122+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Cognito", "Cognito", "{F5214562-85F4-4FD8-B56D-C5D8E7914901}"
123+
EndProject
124+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CognitoTests", "Cognito\Tests\CognitoTests.csproj", "{63DC05A0-5B16-45A4-BDE5-90DD2E200507}"
125+
EndProject
126+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scenarios", "Scenarios", "{D38A409C-EE40-4E70-B500-F3D6EF8E82A4}"
127+
EndProject
128+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CognitoBasics", "Cognito\Scenarios\Cognito_Basics\CognitoBasics.csproj", "{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99}"
129+
EndProject
130+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CognitoActions", "Cognito\Actions\CognitoActions.csproj", "{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1}"
131+
EndProject
122132
Global
123133
GlobalSection(SolutionConfigurationPlatforms) = preSolution
124134
Debug|Any CPU = Debug|Any CPU
@@ -293,6 +303,18 @@ Global
293303
{0633CB2B-3508-48E5-A8C2-427A83A5CA6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
294304
{0633CB2B-3508-48E5-A8C2-427A83A5CA6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
295305
{0633CB2B-3508-48E5-A8C2-427A83A5CA6E}.Release|Any CPU.Build.0 = Release|Any CPU
306+
{63DC05A0-5B16-45A4-BDE5-90DD2E200507}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
307+
{63DC05A0-5B16-45A4-BDE5-90DD2E200507}.Debug|Any CPU.Build.0 = Debug|Any CPU
308+
{63DC05A0-5B16-45A4-BDE5-90DD2E200507}.Release|Any CPU.ActiveCfg = Release|Any CPU
309+
{63DC05A0-5B16-45A4-BDE5-90DD2E200507}.Release|Any CPU.Build.0 = Release|Any CPU
310+
{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
311+
{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99}.Debug|Any CPU.Build.0 = Debug|Any CPU
312+
{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99}.Release|Any CPU.ActiveCfg = Release|Any CPU
313+
{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99}.Release|Any CPU.Build.0 = Release|Any CPU
314+
{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
315+
{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
316+
{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
317+
{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1}.Release|Any CPU.Build.0 = Release|Any CPU
296318
EndGlobalSection
297319
GlobalSection(SolutionProperties) = preSolution
298320
HideSolutionNode = FALSE
@@ -349,6 +371,10 @@ Global
349371
{6C167F25-F97F-4854-8CD8-A2D446B6799B} = {9424FB14-B6DE-44CE-B675-AC2B57EC1E69}
350372
{D95519CA-BD27-45AE-B83B-3FB02E7AE445} = {6C167F25-F97F-4854-8CD8-A2D446B6799B}
351373
{0633CB2B-3508-48E5-A8C2-427A83A5CA6E} = {9424FB14-B6DE-44CE-B675-AC2B57EC1E69}
374+
{63DC05A0-5B16-45A4-BDE5-90DD2E200507} = {F5214562-85F4-4FD8-B56D-C5D8E7914901}
375+
{D38A409C-EE40-4E70-B500-F3D6EF8E82A4} = {F5214562-85F4-4FD8-B56D-C5D8E7914901}
376+
{38C8C3B0-163D-4B7B-86A2-3EFFBC165E99} = {D38A409C-EE40-4E70-B500-F3D6EF8E82A4}
377+
{1AF980DF-DEEA-4E5D-9001-6EC67EB96AD1} = {F5214562-85F4-4FD8-B56D-C5D8E7914901}
352378
EndGlobalSection
353379
GlobalSection(ExtensibilityGlobals) = postSolution
354380
SolutionGuid = {08502818-E8E1-4A91-A51C-4C8C8D4FF9CA}

0 commit comments

Comments
 (0)