GitHub - jan-ll/scribe-java: Simple OAuth library for Java · GitHub
Skip to content

jan-ll/scribe-java

 
 

Folders and files

Repository files navigation

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.

About

Simple OAuth library for Java

Resources

License

Stars

Watchers

Forks

Packages

Contributors