actix / actix/actix-extras

[actix-web-httpauth] Custom error response when BearerAuth extrator is used

Open
#587 0 comments 0 reactions 0 assignees View on GitHub
A-httpauth C-improvement
Dominant language
Rust
Stars
889
Forks
224
Avg merge
9h 37m
Merged PRs (30d)
20

Description

I'd like to specify a custom error handler for `BearerAuth` extractor, possibly via its `Config`.
This is already supported by `HttpAutentication` middleware (https://github.com/actix/actix-extras/issues/156), but the middleware seems to be independent from the extractor.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Rust implementation of the BearerAuth extractor and its Config, then compare it with the existing HttpAuthentication middleware error-handler path. Done means the extractor can accept and invoke a custom error handler through its configuration, with the behavior verified by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.