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

AuthenticationOptions under GlobalConfiguration? #1414

Open
pthibodeaux opened this issue Jan 8, 2021 · 3 comments · May be fixed by #2114
Open

AuthenticationOptions under GlobalConfiguration? #1414

pthibodeaux opened this issue Jan 8, 2021 · 3 comments · May be fixed by #2114
Labels
Authentication Ocelot feature: Authentication Dec'24 December 2024 release
Milestone

Comments

@pthibodeaux
Copy link

pthibodeaux commented Jan 8, 2021

Is there any way to set Authentication Options globally? Basically, want everything to go through authentication but hoping not to have to do it for each route.
I tried putting the "AuthenticationOptions" under "GlobalCOnfiguration", but that did not seem to work.

Thanks

@gao-artur
Copy link

You can use this workaround. Your ConfigureRoute will be something like this:

private static void ConfigureRoute(FileRoute route, GlobaAuthenticationOptions authenticationOptions)
{
    route.AuthenticationOptions = authenticationOptions;
}

@raman-m
Copy link
Member

raman-m commented Jun 15, 2024

You have the right to reopen this issue in the future if you come with a PR ready

@raman-m raman-m closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2024
@raman-m raman-m reopened this Jul 9, 2024
@raman-m
Copy link
Member

raman-m commented Jul 9, 2024

Duplicate of #842

@raman-m raman-m marked this as a duplicate of #842 Jul 9, 2024
@raman-m raman-m linked a pull request Jul 9, 2024 that will close this issue
@raman-m raman-m added Authentication Ocelot feature: Authentication Dec'24 December 2024 release labels Oct 26, 2024
@raman-m raman-m added this to the Autumn'24 milestone Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authentication Ocelot feature: Authentication Dec'24 December 2024 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants