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

OpenApi security schemes support #144

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

evilbluebeaver
Copy link
Contributor

I managed to implement an OpenApi security schemes as shown here so JWT authorization will be shown in a specific chapter and not amongst other headers.
I'm not sure if I did it right though as it needs a name for each authorization to be assigned. I decided to use constant name "JWT authorizer" as there is no difference in a presentation of the API between separate jwt authorizations after all even if one decides to use many authorization layers. As an option, it is possible to use type_name::<T> of T from JwtClaims<T> but this will lead to an inner structure leakage to the API. Maybe there are other ways but I can't come up with one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant