Exception: Keycardai::OAuth::ProtocolError
- Defined in:
- lib/keycardai/oauth/errors.rb
Overview
The server's response violates the protocol contract: metadata with a
mismatched or missing issuer, a token response with no access token.
The code discriminates the case (issuer_mismatch, invalid_metadata,
invalid_response).
Instance Attribute Summary collapse
- #code ⇒ String readonly
Instance Method Summary collapse
-
#initialize(message, code:) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(message, code:) ⇒ ProtocolError
Returns a new instance of ProtocolError.
57 58 59 60 |
# File 'lib/keycardai/oauth/errors.rb', line 57 def initialize(, code:) super() @code = code end |
Instance Attribute Details
#code ⇒ String (readonly)
55 56 57 |
# File 'lib/keycardai/oauth/errors.rb', line 55 def code @code end |