Skip to content

Use child of CognitoUser for Identity #224

Answered by ashishdhingra
fracampit asked this question in Q&A
Discussion options

You must be logged in to vote

Just for reference, the class CognitoUserManager restricts the underlying type to CognitoUser via clause UserManager where TUser : CognitoUser.

@fracampit Thanks for posting guidance question. Could you please share the following:

  • Sample code to reproduce the issue.
  • Stack trace of the error and exact error message.

Just a gist, ServiceCollection.AddCognitoIdentity() just maps the type CognitoUser when injecting Cognito user and calling services.AddIdentity<CognitoUser, CognitoRole>().

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. guidance Question that needs advice or information. module/cog-id-provider
2 participants