text: from flask import request
  
  from zeus import auth
  
  
  class HeaderAuthentication(object):
      def authenticate(self):
          return auth.get_tenant_from_headers(request.headers)
  
  
  class SessionAuthentication(object):
      def authenticate(self):
          user = auth.get_current_user()
          if not user:
              return None
  
          return auth.Tenant.from_user(user)
  