Class: Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash
- Inherits:
-
Object
- Object
- Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash
- Defined in:
- lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb
Defined Under Namespace
Classes: RegistrarHash
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, time = Time) ⇒ ConvertOmniAuthHashToRegistrarHash
constructor
A new instance of ConvertOmniAuthHashToRegistrarHash.
Constructor Details
#initialize(app, time = Time) ⇒ ConvertOmniAuthHashToRegistrarHash
Returns a new instance of ConvertOmniAuthHashToRegistrarHash.
4 5 6 7 |
# File 'lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb', line 4 def initialize(app, time = Time) @app = app @time = time end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 |
# File 'lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb', line 9 def call(env) try_to_normalize_auth(env) @app.call(env) end |