- Configurable connection parameters Specify the OAuth server in a
layer7.propertiesfile. Configuration without compilation! - Layer 7 OAuth 1.0 and 2.0 Connect to a SecureSpan Gateway’s OAuth server in minutes!
Use the provider Layer7Api for OAuth 1.0
OAuthService service = new ServiceBuilder()
.provider(Layer7Api.class)
.apiKey("Consumer")
.apiSecret("Secret")
.build();Use the provider Layer7Api20 for OAuth 1.0
OAuthService service = new ServiceBuilder()
.provider(Layer7Api20.class)
.apiKey(apiKey)
.apiSecret(apiSecret)
.callback("http://preview.layer7tech.com:8080/oauth/v2/redirect")
.scope("oob")
.build();See the Scribe-Java doc or layer7tech.com for details. Getting Started
Note that it really helps to run scribe on debug mode (since 1.3.0), to get additional info. To do this simply call the .debug() method on the ServiceBuilder.
