Skip to content

Bearer Authorization setup #70

Description

@karthikavkannan24

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:

  • @oas\SecurityScheme(
  •  securityScheme="bearerAuth",
    
  •  type="apiKey",
    
  •  in="header",
    
  •  name="Authorization",
    
  • )
    **/

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions