@ExtensionPoint public interface OAuthServiceProvider { /** * Returns the URL where you should redirect your users to * authenticate your application. */ String getAuthorizationUrl(); /** * Retrieve the access token */ OAuthToken getAccessToken(OAuthVerifier verifier); /** * After establishing of secure communication channel, * this method supossed to access the protected resoure * and retrieve the user infos. */ OAuthUserInfo getUserInfo(OAuthToken token) throws IOException; }