-
Notifications
You must be signed in to change notification settings - Fork 115
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
Support for request guards #8
Comments
FromRequest is missing |
Note: For headers like "Authorization", a security component needs to be added instead. |
Added support for Request Guards in #56. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey!
First of all: Amazing crate! Thank you very much for this!
I am using request guards to add authentication to my application. This requires the user to add the Authorization header to a number of requests.
I would like to specify this in the API documentation.
An example function can look like this:
The authentication guard returns 401 if the token does not match any user and adds the header requirement to the request.
The text was updated successfully, but these errors were encountered: