Class: Registrar::Middleware::ConvertOmniAuthHashToRegistrarHash

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/middleware/convert_omniauth_hash_to_registrar_hash.rb

Defined Under Namespace

Classes: RegistrarHash

Instance Method Summary collapse

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