Class: MCP::Client::OAuth::AuthorizationRequest
- Inherits:
-
Struct
- Object
- Struct
- MCP::Client::OAuth::AuthorizationRequest
- 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
-
#authorization_server ⇒ Object
Returns the value of attribute authorization_server.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
Instance Attribute Details
#authorization_server ⇒ Object
Returns the value of attribute authorization_server
14 15 16 |
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14 def @authorization_server end |
#resource ⇒ Object
Returns the value of attribute resource
14 15 16 |
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14 def resource @resource end |
#scopes ⇒ Object
Returns the value of attribute scopes
14 15 16 |
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14 def scopes @scopes end |
#server_url ⇒ Object
Returns the value of attribute server_url
14 15 16 |
# File 'lib/mcp/client/oauth/authorization_request.rb', line 14 def server_url @server_url end |