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

Httpcontext.current.request is null in authorisation.cs for web portal url #274

Open
GD22567 opened this issue Jul 8, 2024 · 0 comments

Comments

@GD22567
Copy link

GD22567 commented Jul 8, 2024

My custom code is working fine when accessing web service url (Note: I have used a value from httpcontext.current.request in authorisation.cs) .But when I am running same code for web portal url it is throwing error .
An error occured when invoking authorisation extension.

Error is coming because httpcontext.current.request is null when reaching authorisation.cs for web portal url.

I am trying to figure out in case of web portal why only username is being transmitted to authorisation.cs and not httpcontext values.How it is different for web service url.
If I remove httpcontext from authorisation.cs ,it works fine for webportal as well.
Trying to check if along with username if I can pass httpcontext value as well from authentication.cs to authorisation.cs.
Any suggestion is appreciated.

@GD22567 GD22567 changed the title Httcontext.current.request is null in authorisation.cs for web portal url Httpcontext.current.request is null in authorisation.cs for web portal url Jul 8, 2024
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