rest-assured/src/main/java/io/restassured/internal/http/AuthConfig.java
public void oauth2(String accessToken) {
        this.builder.client.removeRequestInterceptorByClass(OAuthSigner.class);
        if (accessToken != null) {
            this.builder.client.addRequestInterceptor(new OAuthSigner(accessToken, OAuthSignature.HEADER));
        }
    }
public void oauth2(String accessToken) {
        this.builder.client.removeRequestInterceptorByClass(OAuthSigner.class);
        if (accessToken != null) {
            this.builder.client.addRequestInterceptor(new OAuthSigner(accessToken, OAuthSignature.HEADER));
        }
    }
</p>OAuth2 sign all requests.  Note that this currently does <strong>not</strong>
wait for a <code>WWW-Authenticate</code> challenge before sending the
the OAuth header.  All requests to all domains will be signed for this
instance.</p>
<p/>
<p>This assumes you've already generated an <code>accessToken</code>
for the site you're targeting.  For More information
on how to achieve this, see the
<a href='https://github.com/scribejava/scribejava/wiki/Getting-Started'>Scribe documentation</a>.</p>

@param accessToken
@since 0.5.1