Cannot handle error if host is not reachable for JwtBearer
- Lingua principale
- C#
- Stelle
- 38.4k
- Fork
- 10.9k
- Merge medio
- 2g 9h
- PR unite (30g)
- 276
Descrizione
### Describe the bug
if you have more then one authentication server (JWT or OpenID) that you trust if one of them is down we are getting error:
```
IDX20803: Unable to obtain configuration from: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]'.
```
We should have a way to make this check optional
### To Reproduce
Steps to reproduce the behavior:
1. Add two authentication schemas with two Authority URLs
2. Turn off one of the authorities
3. See error when try to navigate to endpoint supporting both authorities
Sample configuration of two JWT bearer can be found here
https://stackoverflow.com/questions/49694383/use-multiple-jwt-bearer-authentication
### Expected behavior
Ignore authentication service if not available. Return 401 if it is the only trusted source.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci la configurazione con due schemi di autenticazione JWT bearer e due URL di Authority, quindi disattiva una Authority e osserva il fallimento quando accedi a un endpoint che supporta entrambe. Analizza come JwtBearer gestisce i servizi di autenticazione non disponibili; il lavoro è completato quando una source non disponibile viene ignorata, mentre una richiesta che utilizza solo quella source restituisce 401.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- authentication, backend
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100