Use child of CognitoUser for Identity #224
-
I am trying to move from the MSSQL EntityFramework Identity Provider to AWS Cognito via this project. I am currently using a custom application user class that inherits from Microsoft's I was hoping I could simply switch the parent class for my custom user class from
Is there a way to use a custom application user class like when you are using the MSSQL EntityFramework Identity Provider? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just for reference, the class CognitoUserManager restricts the underlying type to @fracampit Thanks for posting guidance question. Could you please share the following:
Just a gist, ServiceCollection.AddCognitoIdentity() just maps the type |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
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:
Just a gist, ServiceCollection.AddCognitoIdentity() just maps the type
CognitoUser
when injecting Cognito user and callingservices.AddIdentity<CognitoUser, CognitoRole>()
.