Skip to content

Commit

Permalink
Update README.md (#4)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md
  • Loading branch information
NickRimmer authored Jul 5, 2023
1 parent 6fe269c commit 69f62e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Open your environment settings and add default header there for authorization. Y
<img src="npm/content/how-to-2.jpg" alt="Step 3">

### Step 4
Open your request, make sure there is no authentication configured and run it. Default headers will insert authorization one with value provided by plugin
Open your request, make sure there is no authentication configured and run it. Default headers will be inserted include authorization one with value provided by plugin

<img src="npm/content/how-to-3.jpg" alt="Step 5">

Expand Down
25 changes: 1 addition & 24 deletions npm/content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,9 @@ Open your environment settings and add default header there for authorization. Y
<img src="npm/content/how-to-2.jpg" alt="Step 3">

### Step 4
Open your request, make sure there is no authentication configured and run it. Default headers will insert authorization one with value provided by plugin
Open your request, make sure there is no authentication configured and run it. Default headers will be inserted include authorization one with value provided by plugin

<img src="npm/content/how-to-3.jpg" alt="Step 5">
This is just one of examples (;

1. Install the plugin from [Insomnia plugin page]([Title](https://insomnia.rest/plugins/insomnia-plugin-oa2-mate)) first you it is not installed yet

2. Add any request (even without endpoint) where we can configure oAuth2 and retrieve the token as usual. Click refresh to get a new token.

<img src="npm/content/how-to-1.jpg" alt="Step 1">

3. Open your environment settings and add default header there for authorization

```json
{
"DEFAULT_HEADERS": {
"Authorization": "Bearer {% oa2_mate %}"
}
}
```
<img src="npm/content/how-to-2.jpg" alt="Step 2">

4. Open some request, make sure there is no authentication configured and run it. Default headers will insert authorization one with value provided by plugin

<img src="npm/content/how-to-3.jpg" alt="Step 2">


# How to contribute

Expand Down

0 comments on commit 69f62e0

Please sign in to comment.