-
Hello guys, as we have several authentication provider for different end users, so i wanted to know is it possible to fallback authentication loop towards second provider or third, in the case first failed, as a work around if we create wrapper routes for same downstream and register second authentication provider in the start up it will work, while without upstream wrapper is it possible? I mean having array of token authentication provider instead of only one. Instead of "AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
}, having "AuthenticationOptions": {
"AuthenticationProviderKey": ["Bearer","app1","app2"]
"AllowedScopes": []
}, or manage the fallback in the case of failure for second app ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, Mehdi! Have you reviewed the Authentication documentation? You mentioned an authentication scenario that involves Multiple Authentication Schemes within a single route definition. Please ensure that all relevant authentication providers are correctly configured in the C# code. Lastly, consider testing out this feature in Ocelot: Multiple Authentication Schemes. |
Beta Was this translation helpful? Give feedback.
Hello, Mehdi!
Have you reviewed the Authentication documentation? You mentioned an authentication scenario that involves Multiple Authentication Schemes within a single route definition. Please ensure that all relevant authentication providers are correctly configured in the C# code.
Lastly, consider testing out this feature in Ocelot: Multiple Authentication Schemes.