Class ImplicitGrant

  • All Implemented Interfaces:
    IAuthorizationGrant

    public class ImplicitGrant
    extends AuthorizationGrant

    The implicit grant is a simplified authorization code flow optimized for clients implemented in a browser using a scripting language such as JavaScript. In the implicit flow, instead of issuing the client an authorization code, the client is issued an access token directly (as the result of the resource owner authorization). The grant type is implicit as no intermediate credentials (such as an authorization code) are issued (and later used to obtain an access token).

    When issuing an implicit grant, the authorization server does not authenticate the client. In some cases, the client identity can be verified via the redirection URI used to deliver the access token to the client. The access token may be exposed to the resource owner or other applications with access to the resource owner's user-agent.

    Implicit grants improve the responsiveness and efficiency of some clients (such as a client implemented as an in-browser application) since it reduces the number of round trips required to obtain an access token. However, this convenience should be weighed against the security implications of using implicit grants, especially when the authorization code grant type is available.

    Author:
    Javier Rojas Blum Date: 09.29.2011, Yuriy Movchan
    • Constructor Detail

      • ImplicitGrant

        public ImplicitGrant()
      • ImplicitGrant

        public ImplicitGrant​(User user,
                             Client client,
                             java.util.Date authenticationTime)
        Constructs an implicit grant.
        Parameters:
        user - The resource owner.
        client - An application making protected resource requests on behalf of the resource owner and with its authorization.
        authenticationTime - The Claim Value is the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time that the End-User authentication occurred.