An open API service indexing awesome lists of open source software.

https://github.com/geeksven-dev/insomnia-plugin-cognito-auth

a simple env based insomnia plugin for cognito authentication
https://github.com/geeksven-dev/insomnia-plugin-cognito-auth

Last synced: about 1 month ago
JSON representation

a simple env based insomnia plugin for cognito authentication

Awesome Lists containing this project

README

        

### Setup
#### Files
Just put this src in your insomnia plugin folder and create a subfolder named as you like (e.g. 'cognito-auth') located at
`~/Library/Application Support/Insomnia/plugins`

#### Environment
Create an environment in Insomnia and add the following params:
```
"username": "",
"password": "",
"userPoolId": "",
"clientId": "",
"host": "",
"intercept_auth": true
```
### How it works
On each request the plugin will intercept the execution and lookup for existing `accessToken` and `identityToken`in the
context store. If there is none that can be used a cognito authentication will be triggered via aws-amplify. On success
the header will be set.