L5-Swagger icon indicating copy to clipboard operation
L5-Swagger copied to clipboard

how can I haw multi auth bearer in different documents?

Open sohrab-jan opened this issue 3 years ago • 2 comments

i have generated authentication with jwt but when i logout from one document , the other documents logout two.

  • @OA\SecurityScheme(
    • securityScheme="bearerSellerAuth",
      
    • in="header",
      
    • name="bearerAuth",
      
    • type="http",
      
    • scheme="bearer",
      
    • bearerFormat="JWT",
      
    • )
      
    this is my code for auth

sohrab-jan avatar Feb 01 '22 05:02 sohrab-jan

Have you tried persist_authorization option: https://github.com/DarkaOnLine/L5-Swagger/blob/master/config/l5-swagger.php#L277

DarkaOnLine avatar Feb 01 '22 06:02 DarkaOnLine

thanks for your useful package i have several rule in my project as module and i want to each module have different document

i done it with change in config file

do you have some tutorial for the package?

On Tue, Feb 1, 2022 at 9:39 AM Darius Matulionis @.***> wrote:

Have you tried persist_authorization option: https://github.com/DarkaOnLine/L5-Swagger/blob/master/config/l5-swagger.php#L277

— Reply to this email directly, view it on GitHub https://github.com/DarkaOnLine/L5-Swagger/issues/442#issuecomment-1026508600, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIC57VDPQLASDIWXBGQJTFDUY52IDANCNFSM5NIGJEMQ . You are receiving this because you authored the thread.Message ID: @.***>

sohrab-jan avatar Feb 02 '22 08:02 sohrab-jan