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>
Video Tutorial

About

Elix is a premium wordpress theme for portfolio, freelancer, design agencies and a wide range of other design institutions.