Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master branch missing OnAuthorizationCodeReceivedAsync to set Spa_Auth_Code session state #87

Open
jlara005 opened this issue Oct 6, 2023 · 0 comments

Comments

@jlara005
Copy link

jlara005 commented Oct 6, 2023

Hi,

I noticed that the master branch is missing the code to set the session state for the Spa Auth Code during logon. Seems like some refactoring was done and that was missed.

HttpContext.Current.Session.Add("Spa_Auth_Code", result.SpaAuthCode);

This is always returning null for me:

public async Task<ActionResult> ViewProfile()
{
    var spaAuthCode = HttpContext.Session["Spa_Auth_Code"];

    ViewBag.SpaAuthCode = spaAuthCode as string;

    return await Task.Run(() => View());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant