Class: MCP::Client::OAuth::AuthorizationRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp/client/oauth/authorization_request.rb

Overview

The decision an authorization_request_validator is asked to approve: which authorization server this client is about to send the user to, and with which scopes.

Handed over as one object rather than as keyword arguments so that later revisions of the MCP authorization specification can add to it without changing the shape every implementer wrote.

Only the named readers are the contract. The positional access Struct also provides (request[0], to_a, each) is not, so the representation can change later.

Instance Attribute Summary collapse

Instance Attribute Details

#authorization_serverObject

Returns the value of attribute authorization_server

Returns:

  • the current value of authorization_server



14
15
16
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14

def authorization_server
  @authorization_server
end

#resourceObject

Returns the value of attribute resource

Returns:

  • the current value of resource



14
15
16
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14

def resource
  @resource
end

#scopesObject

Returns the value of attribute scopes

Returns:

  • the current value of scopes



14
15
16
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14

def scopes
  @scopes
end

#server_urlObject

Returns the value of attribute server_url

Returns:

  • the current value of server_url



14
15
16
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14

def server_url
  @server_url
end