-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct user restriction behavior by sign up source in eox-tenant (
#201) * fix: fixing login tenant aware adding new auth backend for nutmeg to be able to use the tenant aware login * fix: tweaking some code
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" Backend abstraction. """ | ||
from django.contrib.auth.backends import AllowAllUsersModelBackend # pylint: disable=import-error | ||
from openedx.core.djangoapps.user_authn.exceptions import AuthFailedError # pylint: disable=import-error | ||
|
||
|
||
def get_edx_auth_backend(): | ||
""" Backend to get the default edx auth backend. """ | ||
return AllowAllUsersModelBackend | ||
|
||
|
||
def get_edx_auth_failed(): | ||
""" Backend to get the AuthFailedError class. """ | ||
return AuthFailedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters