Class: Shamu::Security::DelegatePrincipal
- Defined in:
- lib/shamu/security/delegate_principal.rb
Overview
...
Instance Attribute Summary
Attributes inherited from Principal
#elevated, #parent_principal, #remote_ip, #user_id
Instance Method Summary collapse
-
#impersonate(user_id) ⇒ Principal
Create a new impersonation Principal, cloning relevant principal to the new instance.
-
#service_delegate? ⇒ Boolean
True if the principal was offered by one service to another and requesting that the downstream service delegate security checks to the calling service.
Methods inherited from Principal
#impersonated?, #initialize, #user_id_chain
Constructor Details
This class inherits a constructor from Shamu::Security::Principal
Instance Method Details
#impersonate(user_id) ⇒ Principal
Create a new impersonation Principal, cloning relevant principal to the new instance.
8 9 10 |
# File 'lib/shamu/security/delegate_principal.rb', line 8 def impersonate( user_id ) fail NoPolicyImpersonationError end |
#service_delegate? ⇒ Boolean
Returns true if the principal was offered by one service to another and requesting that the downstream service delegate security checks to the calling service.
13 14 15 |
# File 'lib/shamu/security/delegate_principal.rb', line 13 def service_delegate? true end |