Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damien Rider 1 post 71 karma points
    Apr 26, 2022 @ 08:10
    Damien Rider
    0

    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 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.

    Thanks.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies