mirror of https://github.com/zulip/zulip.git
bf7fc5701f
A utility command to enable or disable certain authentication backends for a realm from the command line. Can be helpful e.g. if the administrator accidentally disables some auth methods in the UI leaving themselves with none remaining that they could actually use to log back into the organization. Example usage: ``` (zulip-py3-venv) vagrant@c32c137f59a0:/srv/zulip$ ./manage.py change_auth_backends -r zulip --show Current authentication backends for the realm: Enabled backends: Dev Email GitHub GitLab Google Apple SAML OpenID Connect (zulip-py3-venv) vagrant@c32c137f59a0:/srv/zulip$ ./manage.py change_auth_backends -r zulip --disable GitHub Disabling GitHub backend for realm Zulip Dev Updated authentication backends for the realm: Enabled backends: Dev Email GitLab Google Apple SAML OpenID Connect Disabled backends: GitHub Done! (zulip-py3-venv) vagrant@c32c137f59a0:/srv/zulip$ ./manage.py change_auth_backends -r zulip --enable GitHub Enabling GitHub backend for realm Zulip Dev Updated authentication backends for the realm: Enabled backends: Dev Email GitHub GitLab Google Apple SAML OpenID Connect Done! ``` |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
models | ||
openapi | ||
tests | ||
tornado | ||
transaction_tests | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
signals.py |