Added a configuration flag to force third party auth (#24789)
This adds a toggle to allow operators to prevent user registration and login via username/password authentication, forcing the platform to only support login and registration using third-party auth such as SAML.
Co-authored-by:
Umar Asghar <mrumarasghar@gmail.com>
Showing
- lms/envs/production.py 2 additions, 0 deletionslms/envs/production.py
- lms/static/js/spec/student_account/login_spec.js 15 additions, 0 deletionslms/static/js/spec/student_account/login_spec.js
- lms/static/js/spec/student_account/register_spec.js 14 additions, 0 deletionslms/static/js/spec/student_account/register_spec.js
- lms/static/js/student_account/views/AccessView.js 5 additions, 2 deletionslms/static/js/student_account/views/AccessView.js
- lms/static/js/student_account/views/LoginView.js 3 additions, 1 deletionlms/static/js/student_account/views/LoginView.js
- lms/static/js/student_account/views/RegisterView.js 5 additions, 1 deletionlms/static/js/student_account/views/RegisterView.js
- lms/templates/student_account/login.underscore 5 additions, 3 deletionslms/templates/student_account/login.underscore
- lms/templates/student_account/register.underscore 22 additions, 19 deletionslms/templates/student_account/register.underscore
- openedx/core/djangoapps/user_authn/toggles.py 23 additions, 0 deletionsopenedx/core/djangoapps/user_authn/toggles.py
- openedx/core/djangoapps/user_authn/views/login.py 6 additions, 1 deletionopenedx/core/djangoapps/user_authn/views/login.py
- openedx/core/djangoapps/user_authn/views/login_form.py 3 additions, 1 deletionopenedx/core/djangoapps/user_authn/views/login_form.py
- openedx/core/djangoapps/user_authn/views/register.py 7 additions, 0 deletionsopenedx/core/djangoapps/user_authn/views/register.py
- openedx/core/djangoapps/user_authn/views/tests/test_login.py 20 additions, 1 deletionopenedx/core/djangoapps/user_authn/views/tests/test_login.py
- openedx/core/djangoapps/user_authn/views/tests/test_register.py 22 additions, 0 deletions...x/core/djangoapps/user_authn/views/tests/test_register.py
Loading
Please register or sign in to comment