Class: Everywhere::OmniAuth::RequestValidator
- Inherits:
-
Object
- Object
- Everywhere::OmniAuth::RequestValidator
- Defined in:
- lib/everywhere/omniauth.rb
Overview
OmniAuth request_validation_phase: passes the native flow's entry, delegates everything else. A nil fallback means the app had no request validation configured, and it still has none — this never tightens.
Instance Attribute Summary collapse
-
#fallback ⇒ Object
readonly
Returns the value of attribute fallback.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(fallback: nil, entry_window: ENTRY_WINDOW) ⇒ RequestValidator
constructor
A new instance of RequestValidator.
Constructor Details
#initialize(fallback: nil, entry_window: ENTRY_WINDOW) ⇒ RequestValidator
Returns a new instance of RequestValidator.
62 63 64 65 |
# File 'lib/everywhere/omniauth.rb', line 62 def initialize(fallback: nil, entry_window: ENTRY_WINDOW) @fallback = fallback @entry_window = entry_window end |
Instance Attribute Details
#fallback ⇒ Object (readonly)
Returns the value of attribute fallback.
60 61 62 |
# File 'lib/everywhere/omniauth.rb', line 60 def fallback @fallback end |
Instance Method Details
#call(env) ⇒ Object
67 68 69 70 71 |
# File 'lib/everywhere/omniauth.rb', line 67 def call(env) return if native_entry?(env) @fallback&.call(env) end |