public static OAuthClientRequest getAuthorizationRequest ( String clientId , String redirectUri ) throws OAuthSystemException { return OAuthClientRequest . authorizationLocation ( OAUTH2_AUTHORIZATION_URL ) . setScope ( "public read write" ) . setResponseType ( ResponseType . CODE . toString ( ) ) . setClientId ( clientId ) . setRedirectURI ( redirectUri ) . buildQueryMessage ( ) ; }
Build an OAuth authorization request .