rsemlal / eclipse-oauth2

Eclipse plug-in to get an OAuth2 access token

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eclipse-oauth2

Simple plug-in to get an OAuth2 access token for a given site using the Eclipse browser widget in a dialog.

Example

OAuth2Client client = new OAuth2Client();
client.setId("00000000000000000000"); // client_id
client.setSecret("0000000000000000000000000000000000000000"); // client_secret
client.setAccessTokenUrl("https://github.com/login/oauth/access_token");
client.setAuthorizeUrl("https://github.com/login/oauth/authorize");

//Opens the dialog
OAuth2RequestAction request = new OAuth2RequestAction(client, "repo");
request.run();

String token = request.getAccessToken(); // access_token

About

Eclipse plug-in to get an OAuth2 access token


Languages

Language:Java 100.0%