erlef / erlef/oidcc_plug

Use Exceptions for Plug Errors

Offen
#26 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Elixir
Sterne
17
Forks
17
Ø Merge
25 Min.
Gemergte PRs (30 T.)
2

Beschreibung

### Description

Instead of using callbacks to manipulate the response, plugs should raise exceptions for authentication errors.

The user can then implement custom error views to adapt the responses.

Additionally: Add some details of internal errors like unsuccessful internal HTTP requests to the existing errors messages. It should however not include the whole reason since that can contain confidential information like client secrets.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.