You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above authentication scheme would run into Custom1AuthJwtBearerEvents, and the authentication result is failed. But the result doesn't affect custom2's authentication result.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We have two authentication shemes named "custom1" and "custom2". The code is:
The controller code is:
The above authentication scheme would run into Custom1AuthJwtBearerEvents, and the authentication result is failed. But the result doesn't affect custom2's authentication result.
There is a related solution: https://stackoverflow.com/questions/60957438/how-to-disable-the-default-authentication-scheme-when-non-default-schema-is-pro
But it is confusing that the default scheme is still excuted even when the authentication scheme is set to others, is it the expected flow?
Is there any solution to aovid excute default scheme without modify the usage?
Beta Was this translation helpful? Give feedback.
All reactions