Skip to content

Add Enabled property to CognitoUser #159

@ScottShingler

Description

@ScottShingler

Describe the feature

The CognitoUser class does not expose information about whether the user account is enabled or disabled. This is an important piece of information that should be exposed, ideally by adding an Enabled property.

Use Case

I am trying to update our ASP.NET Core Identity implementation to use Cognito. This has proved to be frustrating, in part due to the fact that FindByIdAsync doesn't give me information about whether the user account is enabled.

CognitoUserPool.FindByIdAsync calls IAmazonCognitoIdentityProvider.AdminGetUserAsync, which returns an instance of AdminGetUserResponse. AdminGetUserResponse includes the Enabled property. However, the Enabled value is not captured in the instance of CognitoUser that is constructed by FindByIdAsync. Consequently, FindByIdAsync is useless to me, so I have to directly use AdminGetUserAsync to get the information I need instead.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Amazon.Extensions.CognitoAuthentication 2.5.5

Targeted .NET Platform

.NET 8

Operating System and version

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.module/cognito-extp2This is a standard priority issuequeuedxsEffort estimation: tiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions