This is a sample collection to test OAuth1 authentication in Bruno starting from 3.3.0+ versions.
- Go to Bruno
- Select Import Collection > Git Repo and paste the Git repo URL.
https://github.com/bruno-collections/oauth1.gitBruno will scan the Bruno collection which exists in tests/fixtures/bru and tests/fixtures/yml.
- Import any one format of your choice and select the Local environment from the right-hand top side.
Now your collection is ready, but we have to run the server locally to execute the requests successfully.
-
Open DevTools in Bruno and go to the Terminal tab.
-
Navigate to the location where you have cloned this repo.
Bruno by default stores your collection in the
Documents/brunodirectory, so the possible path would be (if you haven't changed this setting):~/Documents/bruno/oauth1 -
Run the following command:
npm start- You will get a message:
OAuth1 Test Server running at http://localhost:8081
Hit the first OAuth1 HMAC-SHA1 200 request endpoint and you will receive a response:
{
"resource": {
"name": "oauth1-test-resource",
"email": "oauth1@example.com"
}
}
