Class: LinkedinSignIn::CallbacksController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/linkedin_sign_in/callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/linkedin_sign_in/callbacks_controller.rb', line 4

def show
  if valid_request?
    redirect_to proceed_to_url, flash: { linkedin_sign_in_token: token }
  else
    head :unprocessable_entity
  end
rescue LinkedinSignIn::RedirectProtector::Violation => error
  logger.error error.message
  head :bad_request
end