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
34 35 36 |
# File 'app/mcp/mcp_authenticator.rb', line 34 def account @account end |
#api_authentication ⇒ Object
Returns the value of attribute api_authentication
34 35 36 |
# File 'app/mcp/mcp_authenticator.rb', line 34 def api_authentication @api_authentication end |
Instance Method Details
#account_name ⇒ Object
37 38 39 |
# File 'app/mcp/mcp_authenticator.rb', line 37 def account_name account.full_name end |
#can_access_service? ⇒ Object
Alias for Api_authentication#can_access_service?
35 |
# File 'app/mcp/mcp_authenticator.rb', line 35 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |
#effective_services ⇒ Object
Alias for Api_authentication#effective_services
35 |
# File 'app/mcp/mcp_authenticator.rb', line 35 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |
#oauth? ⇒ Boolean
41 42 43 |
# File 'app/mcp/mcp_authenticator.rb', line 41 def oauth? false end |
#permitted_services ⇒ Object
Alias for Api_authentication#permitted_services
35 |
# File 'app/mcp/mcp_authenticator.rb', line 35 delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication |