Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple OAuth library for Java

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.textile
Octocat-spinner-32 bundle
Octocat-spinner-32 changelog.txt
Octocat-spinner-32 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.