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

AzureUserToken cookie causing issues with Classic ASP #110

Open
brbeaird opened this issue Jul 1, 2024 · 1 comment
Open

AzureUserToken cookie causing issues with Classic ASP #110

brbeaird opened this issue Jul 1, 2024 · 1 comment

Comments

@brbeaird
Copy link

brbeaird commented Jul 1, 2024

We (unfortunately) still have a few Classic ASP.NET apps running on our IIS server, and we discovered that when the AzureUserToken cookie is present after logging in through Azure, it breaks the ability to the ASP apps to call Request.Cookies(). It seems to be they cannot handle non-encoded strings.

I am not exactly sure that we need this cookie anyway - is there any way to skip its creation? Or is there a way to store it URL-encoded?

@brbeaird
Copy link
Author

brbeaird commented Jul 3, 2024

I found some more detail on this. The cookie is being created in OAuthLoginBase.cs. That class assumes the oauth information will include a UserGuidKey and value, but those apparently are blank with how I have set this up, which results in a cookie that breaks ASP. I cannot tell how that UserGuidKey normally gets set.

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