Swagger Authentication
Functionality
This plugins enables quick and easy way to authenticate in Swagger using a customizable set of credentials. This can be installed in Chromium based browsers (Chrome, new Microsoft Edge, Brave) and also Mozilla Firefox.
How to install extension in Google Chrome (~3 minutes)
- Download Chrome extension from here
- Extract contents and remember where it's stored. You will need the folder that's inside the zip.
- Open extensions in Google Chrome by navigating to chrome://extensions
- Enable Developer mode
- Select option to "Load unpacked" and select folder "Swagger Authentication" that you downloaded in step 1
- Great success!
How to install extension in Mozilla Firefox (~3 minutes)
- Download Firefox extension from here
- Open extensions in Mozilla Firefox by navigating to
about:addons
- Drag & Drop downloaded extension file
Firefox Extension.xpi
to the window - Agree that you want to add the extension
- Great success!
How to update extension to latest version in Google Chrome
- Download Chrome extension from here
- Delete old plugin data which you extracted when installing it last time.
- Extract contents to the same folder as last time. That is important if you want to keep your previously saved data.
- Open extensions in Google Chrome by navigating to chrome://extensions
- Click Reload button for the Hyarchis Auth extension
- Great success!
How to update extension to latest version in Mozilla Firefox
- Steps are identical as when installing a new plugin in Mozilla Firefox
How to use the extension
- Expand the list of extensions you have in Google Chrome and select "Swagger Auth"
- Add as many users as you want
- Name - That's how this request template will be named. Names must be unique.
- Request endpoint - Authorization request endpoint
- Request body - Authorization request body
- Authorization header schema - Authorization request header schema (Hyarchis, Bearer, ...)
- Authorization session accessor - Path to access authorization response value that should be used for further requests in Swagger. Examples:
sessionId
,authrorizationData.sessionId
,access_token
,some.object[0].sessionId
- [Optional] Effective Urls - Optional comma-separated field indicating at what Urls in Swagger this template should be included. If left empty - it will be included everywhere.
- Navigate to any swagger and you will notice additional "Authorize" buttons at the bottom right corner
- Click Authorize and you will be automatically authenticated using the provided details of the button.