Skip to content

auth: Implement AuthCheck struct #5538

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

Merged
merged 3 commits into from
Nov 25, 2022
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 24, 2022

This wraps the req.authenticate() calls with a builder pattern API, which can later be extended to support token scopes.

One small downside is that it's possible to forget to call the check() method and only construct the AuthCheck struct, but that should largely be mitigated by the #[must_use] attribute.

This wraps the `req.authenticate()` calls with a builder pattern API, which can later be extended to support token scopes.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 24, 2022
@Turbo87 Turbo87 merged commit 43d317b into rust-lang:master Nov 25, 2022
@Turbo87 Turbo87 deleted the auth-check branch November 25, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants