Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement typed header parsing for ucan header #122

Open
blaine opened this issue Aug 5, 2023 · 0 comments
Open

Implement typed header parsing for ucan header #122

blaine opened this issue Aug 5, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@blaine
Copy link

blaine commented Aug 5, 2023

Summary

Problem

Currently, parsing the ucan header in axum is a fair amount of boilerplate work.

Impact

Everyone using UCANs for http-based authorization in e.g. axum need to implement the extractors by hand. This is both a high barrier to entry and a lot of work.

Solution

rs-ucan (or adjacent crate) should ship with an out-of-the-box extractor for axum.

Detail

We have a nascent implementation in fission-server, and will work on extracting that to be generally reusable.

Additional context

See also: subconsciousnetwork/noosphere#68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants