Class AuthorizationCodeUriRequest.Builder

    • Constructor Detail

      • Builder

        public Builder​()
    • Method Detail

      • redirect_uri

        public AuthorizationCodeUriRequest.Builder redirect_uri​(URI redirect_uri)
        The redirect URI setter.
        Parameters:
        redirect_uri - Required. The URI to redirect to after the user grants/denies permission. This URI needs to have been entered in the Redirect URI whitelist that you specified when you registered your application. The value of redirect_uri here must exactly match one of the values you entered when you registered your application, including upper/lowercase, terminating slashes, etc.
        Returns:
        An AuthorizationCodeUriRequest.Builder.
      • state

        public AuthorizationCodeUriRequest.Builder state​(String state)
        The state setter.
        Parameters:
        state - Optional, but strongly recommended. The state can be useful for correlating requests and responses. Because your redirect_uri can be guessed, using a state value can increase your assurance that an incoming connection is the result of an authentication request. If you generate a random string or encode the hash of some client state (e.g., a cookie) in this state variable, you can validate the response to additionally ensure that the request and response originated in the same browser. This provides protection against attacks such as cross-site request forgery.
        Returns:
        An AuthorizationCodeUriRequest.Builder.
        See Also:
        RFC 6749: Cross-Site Request Forgery
      • show_dialog

        public AuthorizationCodeUriRequest.Builder show_dialog​(boolean show_dialog)
        The show dialog setter.
        Parameters:
        show_dialog - Optional. Whether or not to force the user to approve the app again if they’ve already done so. If false (default), a user who has already approved the application may be automatically redirected to the URI specified by redirect_uri. If true, the user will not be automatically redirected and will have to approve the app again.
        Returns:
        An AuthorizationCodeUriRequest.Builder.