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

Added: JWT security scheme to openapi #1159

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

Ninos
Copy link
Contributor

@Ninos Ninos commented Sep 22, 2023

After that it's possible to add token in swagger ui without defining Bearer prefix.

PS: Currently there's a bug with $checkPath, $usernamePath & $passwordPath. If you're using route names instead of paths, in swagger ui/docs you get POST auth instead of POST /auth, so you cannot validate via swagger ui. I haven't found an elegant way to load GeneratorInterface service :/

@Ninos Ninos closed this Sep 25, 2023
@Ninos Ninos reopened this Sep 25, 2023
@Ninos Ninos force-pushed the openapi-jwt-security-scheme branch from 1e560c0 to 1e82b22 Compare November 27, 2023 14:17
@Ninos
Copy link
Contributor Author

Ninos commented Nov 27, 2023

Sry, fixed functional tests & rebased to latest 2.x branch, hope all's fine now :-)

@chalasr
Copy link
Collaborator

chalasr commented Nov 30, 2023

Thank you @Ninos.

@chalasr chalasr merged commit 6b7397a into lexik:2.x Nov 30, 2023
8 checks passed
@chalasr
Copy link
Collaborator

chalasr commented Nov 30, 2023

Currently there's a bug with $checkPath, $usernamePath & $passwordPath. If you're using route names instead of paths, in swagger ui/docs you get POST auth instead of POST /auth, so you cannot validate via swagger ui. I haven't found an elegant way to load GeneratorInterface service :/

Opening an issue for this with some reproducer would be very nice.

@Ninos Ninos deleted the openapi-jwt-security-scheme branch December 30, 2023 17:38
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.

2 participants