New AuthenticationOptions property in global configuration
See original GitHub issueIs it possible to use AuthenticationOptions
in the GlobalConfiguration
? Like this:
{
"ReRoutes": [],
"GlobalConfiguration": {
"AuthenticationOptions": {
"AuthenticationProviderKey": "TestKey",
"AllowedScopes": []
}
}
}
The reason why I would do that is: the ReRoutes
configuration is coming from a Service Discovery
, and I want all of them to be authenticated via IdentityServer with key TestKey
.
Also, is it possible to add allowedScopes
to a service registered to Consul
, and then map it to Ocelot ReRoutes
dynamically (same as host-names and ports)?
Specifications
- Version: 13.4.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Enable web app authentication options using Azure Active ...
Enable authentication options in a web app by using Azure AD B2C ... var redirectUrl = Url.Content("~/"); var properties = new ...
Read more >AuthenticationOptions Properties (Microsoft.Owin.Security)
The AuthenticationType in the options corresponds to the IIdentity AuthenticationType property. A different value may be assigned in order to ...
Read more >Configuration — Ocelot 1.0.0 documentation
The Global configuration is a bit hacky and allows overrides of Route specific settings. ... property you must have a file called ocelot.global.json....
Read more >Remove `Authentication` property from ` ...
To remedy this, we move from an Authentication property to an AddAuthentication extension method to provide the benefits of a (1) top-level ...
Read more >What's New in .NET 7 for Authentication and Authorization
The new Authentication section keeps the configuration settings for any authentication scheme supported by your application, although currently ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can anyone please provide me with an answer?
@faultcode @harindaka @harshmaurya Code review has started. Go! 😉