Class: Spid::Rack::Sso

Inherits:
Object
  • Object
show all
Defined in:
lib/spid/rack/sso.rb

Overview

:nodoc:

Defined Under Namespace

Classes: SsoEnv

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Sso

Returns a new instance of Sso.



8
9
10
# File 'lib/spid/rack/sso.rb', line 8

def initialize(app)
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



6
7
8
# File 'lib/spid/rack/sso.rb', line 6

def app
  @app
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/spid/rack/sso.rb', line 12

def call(env)
  @sso = SsoEnv.new(env)

  return @sso.response if @sso.valid_request?

  app.call(env)
end