Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Update README.md #4

Merged
merged 2 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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