Class: Stormpath::Rails::IdSiteCallback::NewController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/stormpath/rails/id_site_callback/new_controller.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/stormpath/rails/id_site_callback/new_controller.rb', line 6

def call
  begin
    if id_site_result.status == 'LOGOUT'
      TokenAndCookiesCleaner.new(cookies).remove
    else
      
    end

    respond_with_success
  rescue Stormpath::Error, JWT::VerificationError => error
    respond_with_error(error)
  end
end