Exception: OmniAuth::Strategies::Oidc::CallbackError
- Inherits:
-
StandardError
- Object
- StandardError
- OmniAuth::Strategies::Oidc::CallbackError
- Defined in:
- lib/omniauth/strategies/oidc.rb
Overview
Override for the CallbackError class
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#error_reason ⇒ Object
Returns the value of attribute error_reason.
-
#error_uri ⇒ Object
Returns the value of attribute error_uri.
Instance Method Summary collapse
-
#initialize(data) ⇒ CallbackError
constructor
A new instance of CallbackError.
- #message ⇒ Object
Constructor Details
#initialize(data) ⇒ CallbackError
Returns a new instance of CallbackError.
264 265 266 267 268 269 |
# File 'lib/omniauth/strategies/oidc.rb', line 264 def initialize(data) super self.error = data[:error] self.error_reason = data[:error_reason] || data[:reason] self.error_uri = data[:error_uri] || data[:uri] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
262 263 264 |
# File 'lib/omniauth/strategies/oidc.rb', line 262 def error @error end |
#error_reason ⇒ Object
Returns the value of attribute error_reason.
262 263 264 |
# File 'lib/omniauth/strategies/oidc.rb', line 262 def error_reason @error_reason end |
#error_uri ⇒ Object
Returns the value of attribute error_uri.
262 263 264 |
# File 'lib/omniauth/strategies/oidc.rb', line 262 def error_uri @error_uri end |
Instance Method Details
#message ⇒ Object
271 272 273 |
# File 'lib/omniauth/strategies/oidc.rb', line 271 def [error, error_reason, error_uri].compact.join(" | ") end |