Class: LinkedinSignIn::CallbacksController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- LinkedinSignIn::CallbacksController
- Defined in:
- app/controllers/linkedin_sign_in/callbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
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. head :bad_request end |