Class: Registrar::Adapter::OmniAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/adapter/omni_auth.rb

Defined Under Namespace

Classes: AuthNormalizer

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ OmniAuth

Returns a new instance of OmniAuth


4
5
6
# File 'lib/registrar/adapter/omni_auth.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object


8
9
10
11
# File 'lib/registrar/adapter/omni_auth.rb', line 8

def call(env)
  try_to_normalize_auth(env)
  @app.call(env)
end