Commit Graph

55 Commits

Author SHA1 Message Date
Valentin Deniaud 62a63d3fcf tests: fix authentic tests (#48012) 2020-10-27 19:05:38 +01:00
Frédéric Péters 6cf6d7fcf6 tests: adapt to change in authentic form field identifiers 2020-10-09 15:53:07 +02:00
Nicolas Roche b063c9cc0f tests: add manage authorizations to expected tests results (#47120) 2020-09-30 19:56:09 +02:00
Benjamin Dauvergne afe4b98f64 debian: add debug log in /var/log/<app>/debug (#29149)
It's configured through the DEBUG_LOG settings:
* DEBUG_LOG = False, no debug log
* DEBUG_LOG = True, all debug log go to /var/log/<app>/debug
* DEBUG_LOG = app1,app2, only debug log of logger app1 and app2
  go to /var/log/<app>/debug

/var/log/<app>/debug is emptied everyday at midnight.
2020-08-25 10:37:34 +02:00
Benjamin Dauvergne 0c023195ce tests: sort None values as empty list (#46007) 2020-08-22 11:31:52 +02:00
Benjamin Dauvergne 29e398577d tests: adapt to change in authentic default permissions (#46007) 2020-08-22 11:31:48 +02:00
Benjamin Dauvergne 90a954b45e misc: provision user.is_active (#44896) 2020-07-10 21:01:34 +02:00
Benjamin Dauvergne bad0618e16 tests_authentic2: verify calls to sleep() on redeploy (#43035) 2020-06-26 11:46:56 +02:00
Frédéric Péters 0012761656 general: use HTTP API to provision users & groups (#43245) 2020-05-29 12:24:18 +02:00
Benjamin Dauvergne 225e22747c tests_authentic: adapt to evolutions in authentic2 (#42154)
* django-filters>=2 is now usable with authentic, for py2 run it must
  be explicitely limited to django-filter<2.
* settings must use MIDDLEWARE instead of MIDDLEWARE_CLASSES
2020-04-27 18:22:51 +02:00
Benjamin Dauvergne c11cb76c6a tests: adapt fixture to permisssions changes in authentic (#42087)
Permission given to role's administrative roles changed from using the
'admin' permission to the 'manage-members' permission (#20513).
2020-04-24 16:45:44 +02:00
Benjamin Dauvergne 70440e9768 profile: set kind on phone number attributes (#41034) 2020-04-02 18:09:51 +02:00
Benjamin Dauvergne 9225efdb96 rest_authentication: raise APIError for signature errors (#39911) 2020-03-13 17:01:44 +01:00
Frédéric Péters 6f927f0196 misc: provision users to services of all OUs (#40518) 2020-03-13 08:51:35 +01:00
Paul Marillonnet 0ca228fa96 python3: migrate authentic (#40407) 2020-03-06 09:31:03 +01:00
Benjamin Dauvergne 5fe3fcb667 tests_authentic: format test data (#40407) 2020-03-06 09:30:33 +01:00
Nicolas Roche e2f826e19b tests: only check for is_authenticated/is_anonymous as attributes (#40099) 2020-02-28 15:12:30 +01:00
Nicolas Roche 6da1e63aab tests: adapt import builtins to run tests in python3 (#40012) 2020-02-28 15:07:01 +01:00
Thomas NOËL ce798bc587 dj22: use user.is_authenticated as a boolean or callable (#37503) 2019-11-07 01:22:36 +01:00
Benjamin Dauvergne a14ced4d18 dj22: use user.is_authenticated as a boolean (#36708) 2019-10-19 19:14:34 +02:00
Paul Marillonnet d292cb96f4 tests: adapt authentic deployment tests to new default roles (#36615) 2019-10-02 14:23:33 +02:00
Frédéric Péters 05c9c1bf5d tests: changed mocked "file()" to mocked "open()", everywhere (#36216) 2019-09-18 11:10:09 +02:00
Thomas NOËL 513d1f9e09 authentic agent: mass provision roles on new services (#35345) 2019-08-19 09:50:06 +02:00
Thomas NOËL 430c184de6 Revert "agent: redeploy roles when authentic get a new service to manage (#35345)"
This reverts commit a125818223.
2019-08-14 22:47:17 +02:00
Nicolas Roche a125818223 agent: redeploy roles when authentic get a new service to manage (#35345) 2019-08-14 18:03:03 +02:00
Benjamin Dauvergne 0f0043ca53 agent/authentic2: retry service's metadata retrieval (#35351) 2019-08-13 11:29:22 +02:00
Benjamin Dauvergne e7abfc8ea7 agent/a2: prevent useless thread launching (#34484) 2019-07-17 11:51:44 +02:00
Benjamin Dauvergne f76a6a84e8 use BRANCH_NAME for naming test databases (#31337) 2019-03-18 11:53:15 +01:00
Christophe Siraut 03a2aa8ed4 agent: add generic import_template management command (#14630) 2019-03-15 11:28:05 +01:00
Frédéric Péters 01da77f564 settings loaders: provide A2_IDP_OIDC_JWKSET to authentic (#25686) 2018-09-06 13:10:06 +02:00
Frédéric Péters 3189d84f06 tests: don't use call_command('tenant_command', <command>...) (#25657)
https://github.com/bernardopires/django-tenant-schemas/issues/495
2018-08-16 12:06:24 +02:00
Benjamin Dauvergne f31d522206 agent/authentic2: add an hobo_provision command (#19853)
To provision all users or roles, the role provisionning is full, i.e. it
removes old roles. The user provisionning is not currently.
2018-06-18 15:53:29 +02:00
Emmanuel Cazenave 4dda39a6bf set TENANT_BASE to a non exisiting path (#22892) 2018-03-30 10:25:46 +02:00
Frédéric Péters 661fd751a6 tests: use Attribute.all_objects to get all fields (#22751) 2018-03-29 15:48:25 +02:00
Frédéric Péters b75755ffe8 profile: switch birth date field to the new birthdate field type (#22443) 2018-03-12 09:27:11 +01:00
Frédéric Péters ff5a70550f tests: add some audience before testing provisionning (#20309) 2017-12-03 19:26:17 +01:00
Benjamin Dauvergne 46e45ddfb2 agent: use BaseUserSerializer for user provisionning (fixes #16924) 2017-08-29 15:16:34 +02:00
Benjamin Dauvergne d3b918a9ba authentic2: enable provisionning in management commands (#15550) 2017-05-17 12:14:16 +02:00
Frédéric Péters cf3351f858 authentic: change emails_to_members to be True by default (#14562) 2017-01-12 09:41:19 +01:00
Benjamin Dauvergne 1533d25d63 authentic: improve provisionning on Role.members changes (#13597)
Only react to many-to-many changes on roles, not other potential
relations (such as Group).
2016-10-14 18:44:01 +02:00
Benjamin Dauvergne ed08accd60 send provisionning messages after request treatment in a thread (fixes #9396)
All objects to provision are collected into the Provisionning singleton object
in thread local dictionnaries. When request processing is finished the
ProvisionningMiddleware launch a thread which will send provisionning messages.
2016-10-05 14:03:27 +02:00
Benjamin Dauvergne 6fce83ff05 tests: adapt to new email attribute in authentic 2016-09-26 10:38:24 +02:00
Frédéric Péters 72e02e4327 tests: account for first/last names now being actual attributes (#13298) 2016-09-25 17:12:56 +02:00
Frédéric Péters 8c9e992ea5 tests: update with new number of attributes (#12355) 2016-06-29 11:54:35 +02:00
Benjamin Dauvergne 80b6a26ca4 rest_authentication: allow having user named after service origin (fixes #10691)
It allows managing services' permissions finely.
2016-04-20 15:13:26 +02:00
Benjamin Dauvergne 1e33b4c3e8 add customizable anonymous service user class (fixes #9814)
Actual class is renamed AnonymousAuthenticServiceUser and a new one is added
named AnonymousAdminServiceUser. By default anonymous service authentication is
forbidden, you must set the HOBO_ANONYMOUS_SERVICE_USER_CLASS setting to
activate it.
2016-01-29 17:33:45 +01:00
Benjamin Dauvergne 2ba0be1e8a add rest_framework authentication module for authentic2 (fixes #8896) 2016-01-26 03:26:44 +01:00
Benjamin Dauvergne d2d0aa9d4c fix broken test (#9503) 2016-01-21 10:47:34 +01:00
Benjamin Dauvergne f23bd9e70a agent/authentic2: provision the is_superuser attribute (fixes #9230) 2016-01-11 22:10:33 +01:00
Benjamin Dauvergne 4aebacf75b tests_authentic: clean temporary combo-tenant-base (fixes #8958) 2015-11-16 09:53:29 +01:00