after_auth.rb 344 B

123456789101112131415161718
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Auth::AfterAuth
  3. include ::Mixin::HasBackends
  4. def self.run(user, session)
  5. backends.each do |backend|
  6. result = backend.run(
  7. user: user,
  8. session: session,
  9. )
  10. return result if result.present?
  11. end
  12. nil
  13. end
  14. end