question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New AuthenticationOptions property in global configuration

See original GitHub issue

Is 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
faultcodecommented, May 7, 2019

Can anyone please provide me with an answer?

0reactions
raman-mcommented, Jul 27, 2023

@faultcode @harindaka @harshmaurya Code review has started. Go! 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found