Skip to main content

OAuth Libraries required for REST Assured project

We have not added libraries related to OAuth earlier but now we are using Twitter APIs for testing we will be adding librarry for OAuth. ScribeJava is the simple OAuth client Java lib!  In order to use OAuth 1 and OAuth 2 (for query parameter signing) you need to add Scribe to your classpath. Since version 2.5.0 you can use OAuth 2 authentication without depending on Scribe.

<dependency>
            <groupId>com.github.scribejava</groupId>
            <artifactId>scribejava-apis</artifactId>
            <version>2.5.3</version>
</dependency>

If you're using version 2.1.0 or older of REST Assured then please use Signpost. In Maven you can simply add the following dependency:

<dependency>
            <groupId>oauth.signpost</groupId>
            <artifactId>signpost-commonshttp4</artifactId>
            <version>1.2.1.1</version>
</dependency>

Submitted by tgoswami on September 1, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.