Class: McpAuthenticator::AuthResult
- Inherits:
-
Struct
- Object
- Struct
- McpAuthenticator::AuthResult
- Defined in:
- app/mcp/mcp_authenticator.rb
Overview
Result of successful authentication via ApiAuthentication token.
Service access is scoped by the token's permitted_services.
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
-
#can_access_service? ⇒ Object
Alias for Api_authentication#can_access_service?.
-
#effective_services ⇒ Object
Alias for Api_authentication#effective_services.
-
#permitted_services ⇒ Object
Alias for Api_authentication#permitted_services.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account
38 39 40 |
# File 'app/mcp/mcp_authenticator.rb', line 38 def account @account end |
#api_authentication ⇒ Object
Returns the value of attribute api_authentication
38 39 40 |
# File 'app/mcp/mcp_authenticator.rb', line 38 def api_authentication @api_authentication end |
Instance Method Details
#account_name ⇒ Object
41 42 43 |
# File 'app/mcp/mcp_authenticator.rb', line 41 def account_name account.full_name end |
#can_access_service? ⇒ Object
Alias for Api_authentication#can_access_service?
39 |
# File 'app/mcp/mcp_authenticator.rb', line 39 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |
#effective_services ⇒ Object
Alias for Api_authentication#effective_services
39 |
# File 'app/mcp/mcp_authenticator.rb', line 39 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |
#oauth? ⇒ Boolean
45 46 47 |
# File 'app/mcp/mcp_authenticator.rb', line 45 def oauth? false end |
#permitted_services ⇒ Object
Alias for Api_authentication#permitted_services
39 |
# File 'app/mcp/mcp_authenticator.rb', line 39 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |