-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
NRE in GetPolicyRequirements() #24
Comments
This might be the fault of using an auth attribute without any policy. IE: I found if I apply global authorization to my app, I do not get this error. But if I try and use PolicyServer via
|
Thanks, merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bare with me here, because I dont have a TON of information because I am encountering this error when I use another library called PolicyServer.
The NRE happens on this line:
https://github.com/Dotnet-Boxed/Framework/blob/master/Source/Boxed.AspNetCore.Swagger/FilterDescriptorExtensions.cs#L25
I get an NRE on that line,
Policy
is null because of the above library. I think we need to code more defensively here somehow. I believe the error is somewhere in here https://github.com/PolicyServer/PolicyServer.Local/blob/dev/src/PolicyServer.Local/AspNetCore/AuthorizationPolicyProvider.csSomehow, PolicyServer is creating its own handler and requirements. But I am not sure whats wrong. Why would Policy be blank? Maybe there is no policy? I mentioned this over in https://github.com/PolicyServer/PolicyServer.Local/issues/17
The text was updated successfully, but these errors were encountered: