-
Notifications
You must be signed in to change notification settings - Fork 1.7k
#585 #2316 Authentication global configuration #2336
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
base: develop
Are you sure you want to change the base?
Conversation
… out of DI container
ggnaegi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few bits and bobs
Thanks for the review! As a team member, you’re welcome to push your suggestions directly as a commit to this feature branch. |
ggnaegi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raman-m ok for me, but make sure that the acceptance tests are written ;-)
Closes #2316
AuthenticationOptionsfor global authentication #2316Proposed Changes
AuthenticateAsyncmethod that ensured all keys were empty, which felt awkward due to filtering out empty keys—and honestly, we already have an auth validator. Second, while the validator doesn’t check for empty keys, I believe the IsSupportedAuthenticationProviders method handles this by validating against supported schemes. As a follow-up action, we could implement empty key checking in the validator to prevent Ocelot from starting.ArgumentNullExceptionobjects to be thrown.AuthenticationOptionsbusiness model for the middleware and custom services. The merging process takes route groups into account for global application.AuthenticationOptionsmodel is mainly used by DiscoveryDownstreamRouteFinder, which sets up theAuthenticationOptionsproperty of DownstreamRoute so it can be read by middleware that works independently of the routing mode, whether static or dynamic.AuthenticationOptionsinclude more features now.