I have a solution using OIDC login from AWS Cognito for Members, it correctly authenticates and allows authorisation into a protected page within the site.
However if I use the IMemberManager or HttpContext during a Controller or View, the Identity is blank, nothing is present even after a fresh OIDC login.
I'm using MemberManager.ExternalLoginSignInAsync(AnExternalLogin, false) to perform to login, even setting the isPersistent property to true doesn't change the HttpContext.User.Identity.
Does anyone have any solutions or suggestions? Any help is greatly appreciated.
I plan on sharing the OIDC related process once it's complete as I've had to amalgamate a bunch of sources to get a working solution.
Identity not present in HttpContext
Hi, hoping some one can help.
I have a solution using OIDC login from AWS Cognito for Members, it correctly authenticates and allows authorisation into a protected page within the site.
However if I use the IMemberManager or HttpContext during a Controller or View, the Identity is blank, nothing is present even after a fresh OIDC login.
I'm using
MemberManager.ExternalLoginSignInAsync(AnExternalLogin, false)
to perform to login, even setting theisPersistent
property totrue
doesn't change theHttpContext.User.Identity
.Does anyone have any solutions or suggestions? Any help is greatly appreciated.
I plan on sharing the OIDC related process once it's complete as I've had to amalgamate a bunch of sources to get a working solution.
Thanks.
is working on a reply...