Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple OAuth library for Java
Java Shell
Pull request Compare This branch is 24 commits ahead, 115 commits behind fernandezpablo85:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE.txt
README.textile fixed code blockquote in readme
bundle
changelog.txt
pom.xml

README.textile

Scribe Java with Layer 7 OAuth Toolkit API support


Layer 7 OAuth Toolkit

What’s different?

  1. Configurable connection parameters Specify the OAuth server in a layer7.properties file. Configuration without compilation!
  2. Layer 7 OAuth 1.0 and 2.0 Connect to a SecureSpan Gateway’s OAuth server in minutes!

OAuth 1.0 support:

Use the provider Layer7Api for OAuth 1.0

OAuthService service = new ServiceBuilder()
        .provider(Layer7Api.class)
        .apiKey("Consumer")
        .apiSecret("Secret")
        .build();

OAuth 2.0:

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();

Configuration:

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.

Something went wrong with that request. Please try again.