def authorize_endpoint(params = nil)
      params = params.select { |_, v| !v.nil? } if params.respond_to? :select
      if params.nil? || params.empty?
        URI::HTTPS.build(host: @host, path: '/' + @tenant + AUTHORIZE_PATH)
      else
        URI::HTTPS.build(host: @host,
                         path: '/' + @tenant + AUTHORIZE_PATH,
                         query: URI.encode_www_form(params))
      end
    end
def authorize_endpoint(params = nil)
      params = params.select { |_, v| !v.nil? } if params.respond_to? :select
      if params.nil? || params.empty?
        URI::HTTPS.build(host: @host, path: '/' + @tenant + AUTHORIZE_PATH)
      else
        URI::HTTPS.build(host: @host,
                         path: '/' + @tenant + AUTHORIZE_PATH,
                         query: URI.encode_www_form(params))
      end
    end
URI that can be used to acquire authorization codes.

 @optional Hash params
   Query parameters that will added to the endpoint.
 @return [URI]