Class: McpAuthenticator::AuthResult

Inherits:
Struct
  • Object
show all
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

Delegated Instance Attributes collapse

Instance Method Summary collapse

Instance Attribute Details

#accountObject

Returns the value of attribute account

Returns:

  • (Object)

    the current value of account



34
35
36
# File 'app/mcp/mcp_authenticator.rb', line 34

def 
  @account
end

#api_authenticationObject

Returns the value of attribute api_authentication

Returns:

  • (Object)

    the current value of api_authentication



34
35
36
# File 'app/mcp/mcp_authenticator.rb', line 34

def api_authentication
  @api_authentication
end

Instance Method Details

#account_nameObject



37
38
39
# File 'app/mcp/mcp_authenticator.rb', line 37

def 
  .full_name
end

#can_access_service?Object

Alias for Api_authentication#can_access_service?

Returns:

  • (Object)

    Api_authentication#can_access_service?

See Also:



35
# File 'app/mcp/mcp_authenticator.rb', line 35

delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication

#effective_servicesObject

Alias for Api_authentication#effective_services

Returns:

  • (Object)

    Api_authentication#effective_services

See Also:



35
# File 'app/mcp/mcp_authenticator.rb', line 35

delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication

#oauth?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'app/mcp/mcp_authenticator.rb', line 41

def oauth?
  false
end

#permitted_servicesObject

Alias for Api_authentication#permitted_services

Returns:

  • (Object)

    Api_authentication#permitted_services

See Also:



35
# File 'app/mcp/mcp_authenticator.rb', line 35

delegate :permitted_services, :effective_services, :can_access_service?, to: :api_authentication