def implicit_grant(implicit_uri, callback_fragment)
    in_params = Util.decode_form(URI.parse(implicit_uri).query)
    unless in_params['state'] && in_params['redirect_uri']
      raise ArgumentError, "redirect must happen before implicit grant"
    end
    parse_implicit_params(callback_fragment, in_params['state'])
  end
def implicit_grant(implicit_uri, callback_fragment)
    in_params = Util.decode_form(URI.parse(implicit_uri).query)
    unless in_params['state'] && in_params['redirect_uri']
      raise ArgumentError, "redirect must happen before implicit grant"
    end
    parse_implicit_params(callback_fragment, in_params['state'])
  end
Gets a token via an implicit grant.
 @param [String] implicit_uri must be from a previous call to
   {#implicit_uri}, contains state used to validate the contents of the
   reply from the server.
 @param [String] callback_fragment must be the fragment portion of the URL
   received by the user's browser after the server redirects back to the
   +redirect_uri+ that was given to {#implicit_uri}. How the application
   gets the contents of the fragment is application specific -- usually
   some javascript in the page at the +redirect_uri+.
 @see http://tools.ietf.org/html/rfc6749#section-4.2
 @return [TokenInfo]