Skip to content

Repository files navigation

Bruno OAuth1 Test Collection

This is a sample collection to test OAuth1 authentication in Bruno starting from 3.3.0+ versions.

Bruno OAuth1 Test Collection

Prerequisites

Getting Started

  1. Go to Bruno
  2. Select Import Collection > Git Repo and paste the Git repo URL.
https://github.com/bruno-collections/oauth1.git

Bruno will scan the Bruno collection which exists in tests/fixtures/bru and tests/fixtures/yml.

Bruno Git Repo Import

  1. 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.

Running the Server

  1. Open DevTools in Bruno and go to the Terminal tab.

  2. Navigate to the location where you have cloned this repo.

    Bruno by default stores your collection in the Documents/bruno directory, so the possible path would be (if you haven't changed this setting): ~/Documents/bruno/oauth1

  3. Run the following command:

npm start
  1. You will get a message:
OAuth1 Test Server running at http://localhost:8081

Testing

Hit the first OAuth1 HMAC-SHA1 200 request endpoint and you will receive a response:

{
  "resource": {
    "name": "oauth1-test-resource",
    "email": "oauth1@example.com"
  }
}

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages