def authorization_request_url(
      resource, client_id, redirect_uri, extra_query_params = {})
      @authority.authorize_endpoint(
        extra_query_params.reverse_merge(
          client_id: client_id,
          response_mode: FORM_POST,
          redirect_uri: redirect_uri,
          resource: resource,
          response_type: CODE))
    end
def authorization_request_url(
      resource, client_id, redirect_uri, extra_query_params = {})
      @authority.authorize_endpoint(
        extra_query_params.reverse_merge(
          client_id: client_id,
          response_mode: FORM_POST,
          redirect_uri: redirect_uri,
          resource: resource,
          response_type: CODE))
    end
Constructs a URL for an authorization endpoint using query parameters.

 @param String resource
   The intended recipient of the requested token.
 @param String client_id
   The identifier of the calling client application.
 @param URI redirect_uri
   The URI that the the authorization code should be sent back to.
 @optional Hash extra_query_params
   Any remaining query parameters to add to the URI.
 @return URI