Class OAuth2FlowGoogleBuilder

    • Field Detail

      • LOGIN_HINT

        public static final String LOGIN_HINT
        Property key that defines values for "login_hint" parameter used in Google OAuth flow.
        See Also:
        Constant Field Values
    • Method Detail

      • loginHint

        public OAuth2FlowGoogleBuilder loginHint​(String loginHint)
        Set login hint parameter used in Authorization Request.
        Parameters:
        loginHint - login hint value.
        Returns:
        a google authorization flow builder.
      • redirectUri

        public T redirectUri​(String redirectUri)
        Description copied from interface: OAuth2CodeGrantFlow.Builder
        Set the redirect URI to which the user (resource owner) should be redirected after he/she grants access to our application. In most cases, the URI is under control of this application and request done on this URI will be used to extract query parameter code and state that will be used in OAuth2CodeGrantFlow.finish(String, String) method.

        If URI is not defined by this method, the default value urn:ietf:wg:oauth:2.0:oob will be used in the Authorization Flow which should cause that code will be passed to application in other way than request redirection (for example shown to the user using html page).

        Specified by:
        redirectUri in interface OAuth2CodeGrantFlow.Builder<T extends OAuth2CodeGrantFlow.Builder>
        Parameters:
        redirectUri - URI that should receive authorization response from the Service Provider.
        Returns:
        Builder instance.
      • scope

        public T scope​(String scope)
        Description copied from interface: OAuth2CodeGrantFlow.Builder
        Set a scope to which the application will get authorization grant. Values of this parameter are defined by the Service Provider and defines usually subset of resource and operations available in the Service Provider.

        The parameter is optional but ServiceProvider might require it.

        Specified by:
        scope in interface OAuth2CodeGrantFlow.Builder<T extends OAuth2CodeGrantFlow.Builder>
        Parameters:
        scope - Scope string.
        Returns:
        Builder instance.
      • client

        public T client​(jakarta.ws.rs.client.Client client)
        Description copied from interface: OAuth2CodeGrantFlow.Builder
        Set the client that should be used internally by the OAuth1AuthorizationFlow to make requests to Authorization Server. If this method is not called, it is up to the implementation to create or get any private client instance to perform these requests. This method could be used mainly for performance reasons to avoid creation of new client instances and have control about created client instances used in the application.
        Specified by:
        client in interface OAuth2CodeGrantFlow.Builder<T extends OAuth2CodeGrantFlow.Builder>
        Parameters:
        client - Client instance.
        Returns:
        Builder instance.