-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Bearer Authorization setup #70
Comments
@karthikavkannan24 Please try this. // Somewhere in your middleware or any other place
/**
* @OA\SecurityScheme(
* type="http",
* description="Login with email and password to get the authentication token",
* name="Token based Based",
* in="header",
* scheme="bearer",
* bearerFormat="JWT",
* securityScheme="apiAuth",
* )
*/ /**
* @OA\Get(
* path="/resources",
* summary="Get the list of resources",
* tags={"Resource"},
* @OA\Response(response=200, description="Return a list of resources"),
* security={{ "apiAuth": {} }}
* )
*/
Hope this helps 🍻 |
@sudkumar , Thanks for the reply. It works |
I am using lume api 8, darkaonline/swagger-lume:8.* and openapi 3.0.0, i am try
and |
Which one is not working? Only authorisation? |
https://swagger.io/docs/specification/authentication/bearer-authentication/
|
Hi,
I'm using DarkaOnLine/SwaggerLume in my Lumen project. Everything works fine except the Authorization. I'm using JWT authentication and I want to pass a Bearer .
I've added following codes:
**/
and
/**
* @OA\Get(
* tags={"User Managment"},
* path="/getusers",
* description="",
* summary="Get users list",
* operationId="getUsers",
* @OA\Response(
* response=200,
* description="Users Listed",
* ),
* security : { bearerAuth: []}
* )
*/
But still I'm getting token not provided issue.
Please feedback.
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: