Commit Graph

1494 Commits

Author SHA1 Message Date
Benjamin Dauvergne 98a1b5943a saml2_endpoints: as Lasso 2.4.0 is still not release do not used ProfileRequestDeniedError 2013-09-11 00:21:39 +02:00
Benjamin Dauvergne b36c532d6c templates: on the logout page waits 300ms before redirecting to login page 2013-09-10 23:42:33 +02:00
Benjamin Dauvergne a0a9359e05 idp/views: do not forget ending slash 2013-09-10 23:40:20 +02:00
Benjamin Dauvergne 780f4957bf idp/saml: fix use of unicode characters in non utf-8 source code 2013-09-10 22:29:57 +02:00
Benjamin Dauvergne 05700a7102 saml2_endpoints: change titles of redirection page
Use the sentence "You are being redirect to" followed by the provider
name.

fixes #3576
2013-09-10 21:57:04 +02:00
Benjamin Dauvergne 4dea1fd7a7 idp/views: do not compute the logout list when doing local logout 2013-09-10 16:19:54 +02:00
Jérôme Schneider ef07484812 idp: fix UnicodeDecodeError for attributes
Fixes #3471
2013-09-10 10:16:53 +02:00
Benjamin Dauvergne 304a5b2a02 saml2_endpoints: only raise a warning when continue_sso() view does not find a nonce paramter in its query string
fixes #3549
2013-09-09 14:17:04 +02:00
Benjamin Dauvergne 03926ff0ef forms: define default USER_PROFILE list of field for the default user model 2013-09-09 11:01:13 +02:00
Benjamin Dauvergne 0e60b69cbf saml: start indexing endpoints at 0 to work around bug in lasso in artifact constructions (the artifact endpoint index is always 0)
Previous commit only fixed the problem for discovery service endpoints.
2013-09-06 13:05:26 +02:00
Benjamin Dauvergne 50d63c2952 saml: start indexing endpoints at 0 to work around bug in lasso in artifact constructions (the artifact endpoint index is always 0) 2013-09-06 12:33:52 +02:00
Benjamin Dauvergne 5d8250e221 forms: do not add related fields to the user profile form, only proper fields 2013-09-06 12:33:52 +02:00
Benjamin Dauvergne 7728257b51 start.sh: apply migration as they work now, fix django version requirement string 2013-09-06 12:33:52 +02:00
Jérôme Schneider fda9426fed nonce: really fix cleanup in NonceManager 2013-08-16 10:27:17 +02:00
Jérôme Schneider 8b23e83e3c nonce: fix cleanup in NonceManager 2013-08-16 10:10:51 +02:00
Jérôme Schneider 2a356878a2 MANIFEST.in: include MANIFEST.in 2013-08-14 22:14:25 +02:00
Jérôme Schneider a03baed4d4 setup.py sdist: store version into the archive 2013-08-13 17:19:04 +02:00
Jérôme Schneider 625399bc3d setup.py: remove use_setuptools which install stuff inside current
folder
2013-08-09 17:01:08 +02:00
Jérôme Schneider 7f2a928447 setup.py: don't depend on django during the setup
Don't depend Django during build and sdist. Don't add mo files
into source package.
2013-08-09 10:53:47 +02:00
Benjamin Dauvergne 51cfb00ad2 saml: in migration 33 do not use the ORM when db.dry_run is True 2013-08-02 10:00:02 +02:00
Benjamin Dauvergne a6ad42e00f saml: fix migration from commit bb9ef6278 2013-08-01 17:47:54 +02:00
Benjamin Dauvergne 2b09e18a78 idp_cas/views: fix indentation error introduced in commit 7ab2405a 2013-08-01 17:16:12 +02:00
Benjamin Dauvergne e9bb9dfece idp/saml: simplify links() method 2013-08-01 15:42:54 +02:00
Mikaël Ates ce06aecd2e authsaml2: implement persistent federation management with identifier in attributes. 2013-08-01 11:36:54 +02:00
Mikaël Ates 2bf62c94f1 authsaml2/utils: register nameID in session at account linking. 2013-08-01 11:36:54 +02:00
Mikaël Ates 0a852e27e7 saml: add identifier attribute field of idp options policy to admin. 2013-08-01 11:36:54 +02:00
Mikaël Ates bb9ef62786 saml: add south migration script for previous commit. 2013-08-01 11:36:54 +02:00
Mikaël Ates 5d7ad6ade0 saml: add identifier attribute field to idp options policy. 2013-08-01 11:36:54 +02:00
Benjamin Dauvergne d01145d064 fix all misuses of naive datetime 2013-08-01 10:33:20 +02:00
Benjamin Dauvergne 4b281d3c1d registration_backend: allow overriding of set and change password forms 2013-07-31 17:06:21 +02:00
Benjamin Dauvergne 035db3ba2c saml: show slug field in admin 2013-07-31 16:02:20 +02:00
Benjamin Dauvergne 00edd6a1db saml: fix typo in admin.py 2013-07-31 16:00:12 +02:00
Benjamin Dauvergne e752b7a92b saml: add slug field to LibertyProvider, use it as a natural key
Also fix migration 0032 with respect to custom user models.
2013-07-31 15:41:06 +02:00
Benjamin Dauvergne 2f18b5e6e1 locale: modify some french translations 2013-07-30 13:59:41 +02:00
Benjamin Dauvergne 849b2162ee models: fix typo in __unicode__ method 2013-07-29 14:50:30 +02:00
Benjamin Dauvergne 8fbe4f7c86 views: add a prefix to the edit profile form (refs #3249) 2013-07-29 14:13:36 +02:00
Mikaël Ates ff113d1c75 authsaml2: fix missing pk of transient model fixes #3353. 2013-07-29 11:44:38 +02:00
Mikaël Ates b858c1805c idp/models: use mapping variables now defined in loader file. 2013-07-26 17:09:45 +02:00
Mikaël Ates 390e9de5ea idp/attributes: use attribute aggregator evolutions for attrs provided at sso
Attribute aggregator profil process methos to allow external functions
    to add attributes.

    Use new mapping variables allowing external mapping file.

    Use special source AUTH_BACKEND to specify attributes that must be taken
    from authentication backend. AUTH_BACKEND must me created as an attribute
    aggregator source in admin.
2013-07-26 17:09:45 +02:00
Mikaël Ates adaa1759f0 attribute aggregator: Many changes, ldap, attribute processing begins
In ldap sources, support the new authentic LDAP backend. attribute
    aggregator needs to look for the dn in session what is done
    diffrently with that backend and django auth ldap still supported.

    Add process() method to UserAttributeProfile that send a signal
    with the attributes as a dictionnary and add dictionanry of
    attributes to the profil. All attributes adding with that method
    are from the source PROCESSING that must be declared in admin to
    extract those attributes. Here will come soon attribute modification
    with external functions.

    The parameter auth_source that indicates that the attributes must
    only be taken from the authentication backend ah been added to the
    signal get_attributes().

    auth_source is supported in get_attributes() of ldap sources.

    Use new way to load mapping, from local mapping file or an external.

    Unify logger declaration.
2013-07-26 17:09:45 +02:00
Mikaël Ates 4f9b96505b attribute_aggregator: choose the core attribute mapping file.
By default the mapping.py file is used.

    It is now possible to specify another file using, using
    ATTRIBUTE_MAPPING in settings.
2013-07-26 17:07:52 +02:00
Mikaël Ates 2f3c9054ae utils: add helper function to import from a module giving a string. 2013-07-26 17:07:52 +02:00
Benjamin Dauvergne 77bf5b0a50 saml: update fr translation 2013-07-24 15:36:29 +02:00
Benjamin Dauvergne 3bfa24e102 README.rst: add paragraph on compilation of translations 2013-07-24 11:35:56 +02:00
Benjamin Dauvergne 91c9e0296a setup.py: update compile_translations command for new organization of translations files 2013-07-24 11:33:15 +02:00
Benjamin Dauvergne 9c5bcffa71 locale,templates: dispatch templates and locale files to sub applications
Now to update translations you must explicitely exclude sub-applications
like that:

	../authentic2-ctl makemessages -a -i idp -i saml -i attribute_aggregator -i authsaml2 -i auth2_auth -i disco_service -i auth2_user
2013-07-24 11:33:15 +02:00
Benjamin Dauvergne b8ff8baee9 remove dead application admin_log_view 2013-07-24 11:26:48 +02:00
Mikaël Ates 2305df3319 forms: get fields from model if no USER_PROFILE. 2013-07-23 17:56:27 +02:00
Mikaël Ates 0d17497346 backends: check if ldap settings key exists is necessary at saving.
Default block values are not always set at saving, e.g. at user
   profile saving.
2013-07-23 15:15:30 +02:00
Mikaël Ates a3fead3937 backends: add one mising default value in the ldap settings dict. 2013-07-23 15:06:39 +02:00