Frappe OAuth 2 Api for Scribe Java

Scribe Java supports Frappe - https://github.com/scribejava/scribejava#supports-all-major-10a-and-20-oauth-apis-out-of-the-box

Frappe Scribe Java Example

briefly,

final String clientId = "clientId";
final String clientSecret = "clientSecret";
final String clientDomain = "https://example.com";
final OAuth20Service service = new ServiceBuilder(clientId)
        .apiSecret(clientSecret)
        .scope("openid all")
        .callback("https://example.com/callback")
        .build(FrappeApi.instance(clientDomain));