GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - scenari/scribe-java: Simple OAuth library for Java

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

391 Commits
391 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
bundle
bundle
 
 
changelog.txt
changelog.txt
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Welcome to the home of Scribe-sc, the simple OAuth Java lib forked by the Scenari Team!

To understand scribe, please read the master github page (https://github.com/fernandezpablo85/scribe-java)

Why a fork for Scribe ?

Basically, because the support of OAuth 2 by Scribe is not as wide as the standard defines it. This fork aims to enhance the Oauth 2 support, especially by letting the API classes interact with the Oauth2 service to specialize the access token request or sign in request.

What is different in Scribe-sc

In an API class, you can define how the access token request should be signed.

	@Override
	public ParameterType getClientAuthenticationType() {
	
	// ParameterType.Header => the token cliendId:clientSecret is base64 encoded and send as a Basic Auth
	// ParameterType.QueryString => cliendId and clientSecret are sent as a oauth parameter in the QueryString
	// ParameterType.PostForm => cliendId and clientSecret are sent as a oauth parameter in a URL encoded form
	
		return ParameterType.Header;
	}
	//Default is QueryString for backward compatibility

You can define how the oauth 2 parameters should be sent.

	@Override
	public ParameterType getParameterType() {
	
	// ParameterType.Header => the parameters are sent in the header
	// ParameterType.QueryString => the parameters are sent as a QueryString
	// ParameterType.PostForm => The parameters are sent in a URL encoded form
	
		return ParameterType.Header;
	}
	//Default is QueryString for backward compatibility

Finally, you can throw the access token request of the service and build your own.

	@Override
	public OAuthRequest handleRequest(OAuthRequest request) {
	//Do what ever you want on the access token request here. The service will not change it. 
	  return request;
	}

About

Simple OAuth library for Java

github.com/fernandezpablo85/scribe-java

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.