Commit Graph

5 Commits

Author SHA1 Message Date
Serghei Mihai a2c3bc9cce auth_saml: separate idps blocks on login page (#38248) 2019-12-19 15:39:48 +01:00
Benjamin Dauvergne 40307f519c auth_saml: add more mapping actions in A2_ATTRIBUTE_MAPPING (#35302) 2019-08-19 16:49:12 +02:00
Benjamin Dauvergne 21257d1a55 auth_saml: implement attribute provisionning after first login (#35283)
Also fix bug in finish_create_user() where modified user was not saved.
2019-08-07 14:42:46 +02:00
Benjamin Dauvergne 9fbbf0519a spring cleaning (#32934)
* reorganize views and forms
* add copyright headers to all .py files
* fix all style errors reported by flake8
2019-05-14 16:19:25 +02:00
Benjamin Dauvergne e178961566 auth_saml: allow provisionning all attributes from SAML attributs (fixes #10599)
A new mellon setting named A2_ATTRIBUTE_MAPPING must be used, whose syntax is:

    MELLON_A2_ATTRIBUTE_MAPPING = [
        {
            'attribute': 'email',
            'saml_attribute': 'mail',  # value from the Name attribute of the saml:Attribute node
            'mandatory': True,  # optional boolean, if True and attribute is missing, SSO will be refused
        },
    ]
2016-05-20 12:03:03 +02:00