erlef / erlef/oidcc_plug

Use Exceptions for Plug Errors

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
17
Forks
17
Avg merge
25m
Merged PRs (30d)
2

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.