Add regressiontest to verify allow_single_sign_on setting
verification for #1677 Since testing omniauth_callback_controller.rb is very difficult, the logic is moved to the models
verification for #1677 Since testing omniauth_callback_controller.rb is very difficult, the logic is moved to the models