MCPcopy
hub / github.com/scribejava/scribejava

github.com/scribejava/scribejava @scribejava-8.3.3 sqlite

repository ↗ · DeepWiki ↗ · release scribejava-8.3.3 ↗
1,864 symbols 5,934 edges 315 files 196 documented · 11%
README

Welcome to the home of ScribeJava, the simple OAuth client Java lib!

Donate Maven Central

Why use ScribeJava?

Dead Simple

Who said OAuth/OAuth2 was difficult? Configuring ScribeJava is so easy your grandma can do it! check it out:

OAuthService service = new ServiceBuilder(YOUR_API_KEY)
                                  .apiSecret(YOUR_API_SECRET)
                                  .build(LinkedInApi20.instance());

That single line (added newlines for readability) is the only thing you need to configure ScribeJava with LinkedIn's OAuth API for example.

Working executable examples are here Common usage: example

Threadsafe

Hit ScribeJava as hard and with many threads as you like.

Java 7 compatible

That's it. You can use it in old environments and in android apps. note: To compile from sources you will need Java 9 or newer

Async and other HTTP clients

ScribeJava support out-of-box several HTTP clients: * ning async http client 1.9.x (maven module scribejava-httpclient-ning) example * Async Http Client asynchttpclient 2.x (maven module scribejava-httpclient-ahc) example * OkHttp (maven module scribejava-httpclient-okhttp) example * Apache HttpComponents HttpClient (maven module scribejava-httpclient-apache) example * Armeria HTTP client (required >= java 8) example * any externally created HTTP client example

just add corresponding maven modules to your pom

Supports many flows and additional features

Supports all (50+) major 1.0a and 2.0 OAuth APIs out-of-the-box

Extension points exported contracts — how you extend this code

BearerSignature (Interface)
Represents 2. Authenticated Requests https://tools.ietf.org/html/rfc6750#section-2 [14 implementers]
scribejava-core/src/main/java/com/github/scribejava/core/oauth2/bearersignature/BearerSignature.java
SignatureService (Interface)
Signs a base string, returning the OAuth signature https://tools.ietf.org/html/rfc5849#section-3.4 [6 implementers]
scribejava-core/src/main/java/com/github/scribejava/core/services/SignatureService.java
HeaderExtractor (Interface)
Simple command object that generates an OAuth Authorization header to include in the request. [8 implementers]
scribejava-core/src/main/java/com/github/scribejava/core/extractors/HeaderExtractor.java
BaseStringExtractor (Interface)
Simple command object that extracts a base string from a OAuthRequest [8 implementers]
scribejava-core/src/main/java/com/github/scribejava/core/extractors/BaseStringExtractor.java
TokenExtractor (Interface)
Simple command object that extracts a concrete Token from a String @param concrete type of Token [7 implementers]
scribejava-core/src/main/java/com/github/scribejava/core/extractors/TokenExtractor.java

Core symbols most depended-on inside this repo

build
called by 113
scribejava-core/src/main/java/com/github/scribejava/core/builder/ServiceBuilderOAuth20.java
getBody
called by 110
scribejava-core/src/main/java/com/github/scribejava/core/model/Response.java
execute
called by 110
scribejava-core/src/main/java/com/github/scribejava/core/httpclient/HttpClient.java
getRawResponse
called by 88
scribejava-core/src/main/java/com/github/scribejava/core/model/Token.java
apiSecret
called by 78
scribejava-core/src/main/java/com/github/scribejava/core/builder/ServiceBuilderCommon.java
getCode
called by 67
scribejava-apis/src/main/java/com/github/scribejava/apis/instagram/InstagramAccessTokenErrorResponse.java
getAccessToken
called by 58
scribejava-core/src/main/java/com/github/scribejava/core/oauth/OAuth20Service.java
callback
called by 56
scribejava-core/src/main/java/com/github/scribejava/core/builder/ServiceBuilderCommon.java

Shape

Method 1,430
Class 408
Interface 16
Enum 10

Languages

Java100%

Modules by API surface

scribejava-core/src/main/java/com/github/scribejava/core/oauth/OAuth20Service.java37 symbols
scribejava-core/src/main/java/com/github/scribejava/core/model/OAuthRequest.java33 symbols
scribejava-httpclient-armeria/src/main/java/com/github/scribejava/httpclient/armeria/ArmeriaHttpClient.java24 symbols
scribejava-httpclient-okhttp/src/test/java/com/github/scribejava/httpclient/okhttp/OAuthAsyncCompletionHandlerTest.java19 symbols
scribejava-httpclient-apache/src/test/java/com/github/scribejava/httpclient/apache/OAuthAsyncCompletionHandlerTest.java19 symbols
scribejava-httpclient-ning/src/test/java/com/github/scribejava/httpclient/ning/MockResponse.java18 symbols
scribejava-core/src/test/java/com/github/scribejava/core/AbstractClientTest.java17 symbols
scribejava-apis/src/main/java/com/github/scribejava/apis/FreelancerApi.java17 symbols
scribejava-core/src/main/java/com/github/scribejava/core/oauth/OAuth10aService.java16 symbols
scribejava-core/src/main/java/com/github/scribejava/core/builder/api/DefaultApi10a.java16 symbols
scribejava-core/src/main/java/com/github/scribejava/core/builder/ServiceBuilder.java16 symbols
scribejava-core/src/test/java/com/github/scribejava/core/httpclient/multipart/MultipartUtilsTest.java15 symbols

Dependencies from manifests, versioned

com.github.scribejava:scribejava-core
com.github.scribejava:scribejava-httpclient-ahc
com.github.scribejava:scribejava-httpclient-apache
com.github.scribejava:scribejava-httpclient-armeria
com.github.scribejava:scribejava-httpclient-ning
com.github.scribejava:scribejava-httpclient-okhttp
com.github.scribejava:scribejava-java8
com.linecorp.armeria:armeria1.20.2 · 1×
com.ning:async-http-client1.9.40 · 1×
com.puppycrawl.tools:checkstyle10.4 · 1×
com.squareup.okhttp3:mockwebserver4.10.0 · 1×

For agents

$ claude mcp add scribejava \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact