Skip to content

A chrome extension to add an auto login button to swagger ui

Notifications You must be signed in to change notification settings

tam5/chrome-swagger-auto-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Swagger Auto Login

A chrome extension to add an auto login button to swagger ui

Installation

  1. Download or clone this repository.
  2. Go to Settings > Extensions in Chrome.
  3. Make sure Developer mode is enabled.
  4. Click Load unpacked extension....
  5. Select the directory where you saved this project.

Getting Started

Clicking this extension's icon brings up a popup where you can enter your username and password.

After saving your credentials you can click the 'Log In' button which has now been added to swagger ui pages to have the extension automatically set your auth token.

Important Note

This currently only works if the endpoint for getting your auth token is /auth/login. It also assumes that the response is in the form of

{
    "token": "ey......"
}

This is because it is what I need right now. However, this should be very easy to customize if needed, just have a look at the source.

About

A chrome extension to add an auto login button to swagger ui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published