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

Open
#587 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

A-httpauth C-improvement

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.

Dominant language
Rust
Stars
892
Forks
225
Avg merge
8h 57m
Merged PRs (30d)
33

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actix/actix-extras

All issues in actix/actix-extras

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.