mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Fix up some SAML issues
* Fix an issue I created overriding authenticate * Fix up attribute mapping using an identity provider class. The methods built into django-social-auth for saml are probably not going to work. We also now expose those mappings in a settings attrs map that the user can override.
This commit is contained in:
@@ -387,6 +387,14 @@ SOCIAL_AUTH_SAML_TECHNICAL_CONTACT = {}
|
||||
SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {}
|
||||
SOCIAL_AUTH_SAML_ENABLED_IDPS = {}
|
||||
|
||||
SOCIAL_AUTH_SAML_ATTRS_PERMANENT_ID = "name_id"
|
||||
SOCIAL_AUTH_SAML_ATTRS_MAP = {
|
||||
"first_name": "User.FirstName",
|
||||
"last_name": "User.LastName",
|
||||
"username": "User.email",
|
||||
"email": "User.email",
|
||||
}
|
||||
|
||||
SOCIAL_AUTH_LOGIN_URL = '/'
|
||||
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/sso/complete/'
|
||||
SOCIAL_AUTH_LOGIN_ERROR_URL = '/sso/error/'
|
||||
|
||||
Reference in New Issue
Block a user