Default authentication scheme is excuted when AuthenticationSchemes is set to non-default scheme #27025
Labels
area-auth
Includes: Authn, Authz, OAuth, OIDC, Bearer
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Describe the bug
We have two authentication shemes named "custom1" and "custom2". The code is:
The controller code is:
[Authorize(AuthenticationSchemes = "custom2")]
The above authentication scheme would run into Custom1AuthJwtBearerEvents, and the authentication result is failed. But the result doesn't affect custom2's authentication result.
To Reproduce
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: