Source code for pulsar.user_auth.methods.allow_all

from pulsar.user_auth.methods.interface import AuthMethod


[docs]class AlwaysAllowAuthMethod(AuthMethod): """ Always allow """ def __init__(self, _config): pass auth_type = "allow_all"
[docs] def authorize(self, authentication_info): return True
[docs] def authenticate(self, job_directory): return {"username": "anonymous"}