app/controllers/users_controller.rb
# GET /users/verify_open_authentication
# Third-party apps redirect here from authorization screens, when existing users request to add connected accounts
GET /users/verify_open_authentication
Third-party apps redirect here from authorization screens, when existing users request to add connected accounts
GET / users / verify_open_authentication Third - party apps redirect here from authorization screens when existing users request to add connected accounts
def verify_open_authentication
    raise EOL::Exceptions::SecurityViolation.new("We got an authorization callback from a third-party app to add a connected account,"\
      "but we don't have a current user account to add it to, as no one is logged in.", :must_be_logged_in) unless logged_in?
    params.delete(:controller)
    params.delete(:action)
    redirect_to new_user_open_authentication_url(params.merge({user_id: current_user.id}))
  end
def verify_open_authentication raise EOL :: Exceptions :: SecurityViolation . new ( "We got an authorization callback from a third-party app to add a connected account," "but we don't have a current user account to add it to, as no one is logged in." , :must_be_logged_in ) unless logged_in? params . delete ( :controller ) params . delete ( :action ) redirect_to new_user_open_authentication_url ( params . merge ( { user_id : current_user . id } ) ) end
GET /users/verify_open_authentication
Third-party apps redirect here from authorization screens, when existing users request to add connected accounts
GET / users / verify_open_authentication Third - party apps redirect here from authorization screens when existing users request to add connected accounts