Exception: Parse::Agent::UnresolvedIdentity
- Inherits:
-
AccessDenied
- Object
- StandardError
- AgentError
- AccessDenied
- Parse::Agent::UnresolvedIdentity
- Defined in:
- lib/parse/agent/errors.rb
Overview
Raised when a session-token agent needs its resolved claim set (for
the SDK-side CLP check, an ACL $match, or a sub-agent subset check)
but the token could not be resolved. A session agent is never treated
as master-key posture just because its token did not resolve: the
check fails closed instead. A subclass of AccessDenied, so tool
dispatch reports it as an :access_denied refusal
(kind: :unresolved_identity).
Instance Attribute Summary
Attributes inherited from AccessDenied
#allowed_fields, #class_name, #denied_field, #kind, #suggested_rewrite
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ UnresolvedIdentity
constructor
A new instance of UnresolvedIdentity.
Methods inherited from AccessDenied
Constructor Details
#initialize(message = nil) ⇒ UnresolvedIdentity
Returns a new instance of UnresolvedIdentity.
100 101 102 103 104 105 106 |
# File 'lib/parse/agent/errors.rb', line 100 def initialize( = nil) super(nil, || "This agent's session could not be resolved, so its " \ "permissions cannot be checked. The request was refused " \ "rather than run without them; retry once Parse Server is " \ "reachable, or rebuild the agent with a valid session token.", kind: :unresolved_identity) end |