How to prevent repeated authentication attempts in WebAPI?
I am creating a .Net 8 WebAPI which needs to support multiple OIDC providers. For each OIDC provider, I have a JwtBearer registration and a OAuth2Introspection registration, which happens in loop (based on configuration) and scheme name is unique to every provider is registered. For ex: if Abc is the provider name, then I have auth scheme as AbcBearer and 2nd one as AbcIntrospection registered. I have also defined a dummy default scheme and corresponding ForwardDefaultSelector defined which will determine the auth scheme to be used for the incoming token validation.