46 Commits

Author SHA1 Message Date
Convly
531c926dfd Authentication events, sso gold only 2021-01-27 11:52:02 +01:00
Convly
5228236246 Merge branch 'master' into features/sso 2021-01-12 11:36:11 +01:00
Convly
ecbe3bd1b0 Fix tests
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2021-01-08 10:09:08 +01:00
Convly
62b52a604d Provider's connection implementation
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-12-28 15:05:24 +01:00
Alexandre Bodin
07e7cfc0bd Make lint stricter and fix the errors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00
Alexandre Bodin
54f83eae53 Add missing tests and remove dead code
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-10-20 10:43:02 +02:00
Pierre Noël
1502a3976e refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-10-19 18:12:51 +02:00
Pierre Noël
907d6c9d33 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-10-19 17:01:46 +02:00
Pierre Noël
1bc8ae4d0f fix tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-10-19 14:48:03 +02:00
Pierre Noël
afa67add2b add didUpdateRolePermissions event
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-10-19 12:34:33 +02:00
Convly
2124f2c282 use set instead of merge to add conditions on author permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:18 +02:00
Convly
a5df905e00 Fix pr comments
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:17 +02:00
Convly
f19bccc094 Add publish permission by default for editor and removes it from the authors
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-09-22 17:39:15 +02:00
Pierre Noël
c9545f2b7d refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-08-03 14:08:18 +02:00
Convly
ba8954794b Add telemetry events for user creation
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-08-03 14:08:18 +02:00
Alexandre Bodin
aaa4192010 Fix default ML permissions
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:48:47 +02:00
Convly
c9ebae4c9f Fix authorization issues due to null subject registration
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
0cf76721e9 Add missing subject on upload permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:45 +02:00
Convly
a300e356c7 Removes the plugins::users-permissions.user subject from editor & author's content-manager permissions
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 11:48:44 +02:00
Alexandre Bodin
9b74a5a5a0 Make default permission use up to 15 level of nesting
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-07-08 11:42:20 +02:00
Pierre Noël
316cf44b0e remote ML settings permissions for creator and editor
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:13 +02:00
Pierre Noël
047a0be908 move function from bootstrap to service
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:11 +02:00
Pierre Noël
1ee5b7f189 fifth refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:10:09 +02:00
Pierre Noël
6a1d65bc37 third refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +02:00
Pierre Noël
243c4ccc4e add upload permissions to default roles + second refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:52 +02:00
Pierre Noël
b893501552 first refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:51 +02:00
Pierre Noël
98f8275190 prevent removing the last superadmin
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:50 +02:00
Pierre Noël
a6e090d991 prevent modification and delete of super admin role
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:49 +02:00
Pierre Noël
711c58b05e create role at startup + warning
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 11:09:49 +02:00
Pierre Noël
9cfc34e19f rename findOneWithUsersCount
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:37 +02:00
Pierre Noël
77eec454ff getUsersCountsFor -> getUserCount
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:37 +02:00
Pierre Noël
291779aa45 move count to role services
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:36 +02:00
Pierre Noël
7f0bb01a07 refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:36 +02:00
Pierre Noël
970a470034 add tests + make role decription optional + refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:59:34 +02:00
Pierre Noël
86882a4aaa refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:58:08 +02:00
Pierre Noël
308beddb24 add DELETE /admin/roles
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:58:07 +02:00
Pierre Noël
e1209af1de refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:56:57 +02:00
Pierre Noël
182ec648d5 add loading of ee files + add create role
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:56:55 +02:00
Pierre Noël
abcaa7f831 add PUT /admin/roles/:id
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:51:46 +02:00
Pierre Noël
407949a70a use findAll instead of find
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:50:51 +02:00
Pierre Noël
f9df191157 fix bad doc
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:50:49 +02:00
Pierre Noël
5a4e6c0cf5 add GET /admin/roles
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:50:48 +02:00
Pierre Noël
81640de2e7 add base for e2e tests
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:19 +02:00
Pierre Noël
eec2937d9c add doc comments
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:17 +02:00
Pierre Noël
37924553ea add test + services.role.create
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:13 +02:00
Pierre Noël
1c65d3c10a add GET /roles/:id
Signed-off-by: Pierre Noël <petersg83@gmail.com>
2020-07-08 10:46:11 +02:00