Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jan-ll/scribe-java

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.