aws / aws-aspnet-cognito-identity-provider

ASP.NET Core Identity Provider for Amazon Cognito
https://aws.amazon.com/developer/language/net/
Apache License 2.0
213 stars 89 forks source link

Customising ClaimsPrincipal #163

Closed ghendo closed 3 years ago

ghendo commented 4 years ago

I was wanting to add my own Role claims to the claims princpal during user login. However it seems I cant override the claimsprincipal create method to do this. What would be the suggested way to add claims at the login. CognitoUserClaimsPrincipalFactory didnt persist the claims past the login page replacing the HttpContext.User with a generated claims principal didnt keep past login either.

NGL321 commented 4 years ago

PR #166 should enable this feature. I will leave this pending PR review

ashishdhingra commented 3 years ago

PR https://github.com/aws/aws-aspnet-cognito-identity-provider/pull/166 merged.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.