class Oauth::CasController < Oauth::BaseController
  def create
    user, is_new_user = Oauth::CreateORFindCasUserService.call(current_user, auth_hash)
    successful_authentication(user)

    render_ok(new_user: is_new_user)
  end


   def auth_hash
    request.env['omniauth.auth']
  end
end