Class: McpAuthenticator::AuthResult
- Inherits:
-
Struct
- Object
- Struct
- McpAuthenticator::AuthResult
- Includes:
- ScopedServices
- Defined in:
- app/mcp/mcp_authenticator.rb
Overview
Result of successful authentication via ApiAuthentication token.
Service access is the token's permitted_services ∩ the account's own grant.
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#api_authentication ⇒ Object
Returns the value of attribute api_authentication.
Delegated Instance Attributes collapse
-
#permitted_services ⇒ Object
Alias for Api_authentication#permitted_services.
Instance Method Summary collapse
Methods included from ScopedServices
#can_access_service?, #scoped_to_account
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account
91 92 93 |
# File 'app/mcp/mcp_authenticator.rb', line 91 def account @account end |
#api_authentication ⇒ Object
Returns the value of attribute api_authentication
91 92 93 |
# File 'app/mcp/mcp_authenticator.rb', line 91 def api_authentication @api_authentication end |
Instance Method Details
#account_name ⇒ Object
100 101 102 |
# File 'app/mcp/mcp_authenticator.rb', line 100 def account_name account.full_name end |
#effective_services ⇒ Object
96 97 98 |
# File 'app/mcp/mcp_authenticator.rb', line 96 def effective_services scoped_to_account(api_authentication.effective_services) end |
#oauth? ⇒ Boolean
104 105 106 |
# File 'app/mcp/mcp_authenticator.rb', line 104 def oauth? false end |
#permitted_services ⇒ Object
Alias for Api_authentication#permitted_services
94 |
# File 'app/mcp/mcp_authenticator.rb', line 94 delegate :permitted_services, to: :api_authentication |