Commit graph

199 commits

Author SHA1 Message Date
Éloi Rivard
40b868cfee
tests: multiple emails and phone_numbers 2023-10-02 21:58:46 +02:00
Éloi Rivard
5986e3e18d
fix: demo client redirection_uri typo 2023-08-21 14:55:46 +02:00
Éloi Rivard
96ccf12ad9
feat: split installation in different extras packages 2023-08-17 14:34:30 +02:00
Éloi Rivard
588ec8792e
Implement a dummy inmemory backend 2023-08-17 12:33:45 +02:00
Éloi Rivard
5a9df64f68
feat: implement registration process 2023-08-15 16:31:44 +02:00
Éloi Rivard
b60dbebd28
Merge branch 'main' into registration 2023-08-15 00:48:49 +02:00
Éloi Rivard
191791ac72
fix: import render_template from flask_themer instead of flask 2023-08-14 15:45:25 +02:00
Éloi Rivard
d27aab8651
refactor: the core module has its own main blueprint 2023-08-14 13:52:24 +02:00
Éloi Rivard
fd24c704c0
feat: implement email verification 2023-08-06 11:58:16 +02:00
Éloi Rivard
e6a2c0b0ef conf: documentation flask version update 2023-07-10 18:36:21 +02:00
Éloi Rivard
4715f643e2 Add a OIDC.REQUIRE_NONCE option to improve compatibility with clients 2023-07-06 17:57:17 +02:00
Éloi Rivard
fd66f86a72 USER_FILTER is parsed with jinja 2023-07-04 18:34:16 +02:00
Éloi Rivard
10a0ecc090 Added an option to disable javascript 2023-07-03 23:26:39 +02:00
Éloi Rivard
4f42798e39 Refactored keypair management 2023-07-01 19:06:26 +02:00
Éloi Rivard
f504bb3a66 Implements a flask User converter 2023-06-29 15:55:39 +02:00
Éloi Rivard
e4e49da44a Renamed configuration entries
- USER_ID_ATTRIBUTE is now USER_RDN
- GROUP_ID_ATTRIBUTE is now GROUP_RDN
2023-06-29 15:55:39 +02:00
Éloi Rivard
57af18d557 Use a unique identifier to indentify users in URLS
Previously we used the uid since we supposed this value was always
valid, but some users user the mail attribute as the User RDN in their
OpenLDAP installation, and do not have a uuid.
2023-06-29 15:55:39 +02:00
Éloi Rivard
7b9e97f5e4 Defer and clean up JS scripts 2023-06-26 18:00:58 +02:00
Éloi Rivard
c091ca19cf Removed html5shiv 2023-06-26 17:48:25 +02:00
Éloi Rivard
bb95978376 Boosts webpages with HTMX
Fixes #144
Fixes #145
2023-06-26 17:17:07 +02:00
Éloi Rivard
c12ceca741 Forgotten phone_number plurals in configuration 2023-06-22 15:45:24 +02:00
Éloi Rivard
361fda0386 Renamed User.phone_number in User.phone_numbers 2023-06-22 15:33:03 +02:00
Éloi Rivard
b5bd497d0e Implemented User.preferred_email 2023-06-22 15:24:13 +02:00
Éloi Rivard
371f806695 Renamed User.email in User.emails 2023-06-22 15:15:46 +02:00
Denise Bitca
2a4acf21eb [NO CI] fix up style 2023-06-05 10:48:16 +02:00
Denise
db72597cc0 Merge branch canaille:main into main 2023-06-05 07:34:49 +00:00
Éloi Rivard
c7f23e845c datetime-local input fields are transformed in UTC server-side 2023-06-01 13:53:32 +02:00
Denise Bitca
4beee2adcb add(#1, #2, #4, #7): implemented registration within canaille 2023-05-29 15:58:30 +02:00
Éloi Rivard
17c2f7a5cd Implemented LDAP ppolicy support. 2023-05-26 15:23:43 +02:00
Éloi Rivard
ca8374acf4 demo ldap checks if schemas exist before loading them 2023-05-24 17:06:13 +02:00
Éloi Rivard
3d3858b317 docker demo flask process reloads on configuration changes 2023-05-24 17:04:42 +02:00
Éloi Rivard
033d436878 Moved LDAP schema installation in the ldap backend module 2023-05-20 20:04:23 +02:00
Éloi Rivard
c1d1706007 Moved every model import to canaille.models 2023-05-20 20:02:00 +02:00
Éloi Rivard
3ec92fc54f Fixes demo auto-reloading conflicts 2023-05-20 18:20:48 +02:00
Éloi Rivard
6f637b8129 Refactored the unit test backend fixtures 2023-05-20 17:17:46 +02:00
Éloi Rivard
30282e633b The LDAP Backend is now a class 2023-05-20 12:08:04 +02:00
Éloi Rivard
b9931da33d Populate the database when running a demo 2023-05-19 15:57:54 +02:00
Éloi Rivard
0992bec5b1 docker demo initial data pythonic loading 2023-05-19 15:53:56 +02:00
Éloi Rivard
4f0381e9e8 Remove remaining time.sleep while launching the demo 2023-05-19 15:09:01 +02:00
Éloi Rivard
4a1b815dab demo initial data pythonic loading 2023-05-19 12:01:13 +02:00
Éloi Rivard
71da8eb504 Split memberof and refint config to fix the docker-compose demo environment 2023-05-04 17:10:49 +02:00
Éloi Rivard
e8e6060c74 ACL group filter can be simple group name instead of full dn 2023-05-02 16:25:00 +02:00
Éloi Rivard
fa62c16768 Moved canaille.ldap_backend to canaille.backends.ldap 2023-04-18 20:22:55 +02:00
Éloi Rivard
c4676ec572 Update User group when save is called 2023-04-17 18:43:43 +02:00
Éloi Rivard
0c4deaeb19 demo: fix deprecated refint overlay configuration 2023-04-17 18:07:36 +02:00
Éloi Rivard
972b986ea4 Enables refint openldap overlay 2023-04-16 19:40:16 +02:00
Éloi Rivard
571c04de66 Fixed toml inline tables 2023-04-15 13:08:24 +02:00
Éloi Rivard
edb64cbfe1 ACL filters are no more LDAP filters but user attribute mappings. 2023-04-14 19:53:16 +02:00
loanR
3292ca8427 Use iso environment in local and container
Poetry installed environment have same groups for run.sh and Dockerfile-canaille
2023-04-12 18:05:16 +02:00
loanR
23b4ff0800 Force docker compose demo poetry environment
Install base dependencies and force optional demo ones
2023-04-12 17:00:18 +02:00
loanR
68ec7b9bf0 Fix docker compose demo poetry environment
Main dependencies where missing, chose poetry install excluding doc and dev packages
2023-04-12 15:57:06 +02:00
Éloi Rivard
e2b96af1ee Moved LDAP configuration entry to BACKENDS.LDAP 2023-04-10 20:31:54 +02:00
Éloi Rivard
cc45ed4be9 OIDC.JWT.MAPPING configuration option is really optional 2023-04-10 20:09:47 +02:00
Éloi Rivard
61f5d25f2f Creates a OIDC configuration section for all the OIDC related entries 2023-04-10 16:24:43 +02:00
Éloi Rivard
db3a4a74ff Renamed user attributes to match SCIM naming convention 2023-04-07 20:12:24 +02:00
Éloi Rivard
6729cc9113 Fixed demo/run.sh exit commands 2023-03-20 09:56:14 +01:00
Éloi Rivard
8e84b016da Organization field support 2023-03-17 17:36:23 +01:00
Éloi Rivard
5fc4ad9ac9 Improved the 'CONTRIBUTING' documentation 2023-03-12 00:45:57 +01:00
Éloi Rivard
fab9f3938f demo and dependencies cleanups 2023-03-12 00:13:09 +01:00
Éloi Rivard
7122323b5a demo configuration uniformization 2023-03-11 23:55:56 +01:00
Éloi Rivard
2c4c3fb37e Title edition support 2023-03-11 22:34:29 +01:00
Éloi Rivard
4170242073 Address edition support (but not in the OIDC claims yet) 2023-03-11 20:12:50 +01:00
Éloi Rivard
402e60325c departmentNumber edition support #129 2023-03-11 12:55:03 +01:00
Éloi Rivard
a57c86cc2c SMTP SSL fixes 2023-02-28 10:07:08 +01:00
Éloi Rivard
2c2797fbad A populate command can be used to fill the database with random users generated with faker. 2023-02-26 19:48:07 +01:00
Éloi Rivard
7458868f77 Pre-consented clients are displayed in the user consent list, and their consents can be revoked. 2023-02-14 21:56:47 +01:00
Éloi Rivard
b6c8790df8 Fixes message on 'run.sh' 2023-02-14 17:58:42 +01:00
Éloi Rivard
a96518ef9c Display TOS and policy URI on the consent list page 2023-02-14 13:51:59 +01:00
Éloi Rivard
ea9f6ebe00 Use full ldap 'givenName' instead of 'gn' 2023-02-04 22:23:58 +01:00
Jesús Pérez Rey (Chuso)
21c497da54
Fix typos and grammar errors. 2023-01-14 20:16:01 +01:00
Éloi Rivard
12a93870fc unit tests: authorization denial 2022-12-11 14:43:21 +01:00
Éloi Rivard
c2e93b8773 unit tests: slapd initialization refactoring 2022-12-06 18:18:27 +01:00
Éloi Rivard
9bf9c43677 Demo displays user preferred locale 2022-12-04 11:53:37 +01:00
Éloi Rivard
b8634900e3 Demo displays user preferred usernames 2022-12-03 11:05:28 +01:00
Éloi Rivard
9e75ef3478 Users can choose their favourite display name 2022-12-02 18:48:21 +01:00
Éloi Rivard
bb0daf34d7 LDAP 'preferredLanguage' attribute support 2022-11-20 22:52:47 +01:00
Éloi Rivard
77ae9df2a9 Issuer 'ISS' configuration option is not mandatory anymore 2022-11-17 18:10:40 +01:00
Éloi Rivard
154ec9fcd2 FROM_ADDR configuration option is not mandatory anymore 2022-11-16 19:26:33 +01:00
Éloi Rivard
e3028f375c Dynamically generate the server metadata.
OAUTH2 and OIDC server metadata are now dynamically generated.
2022-11-16 10:20:32 +01:00
Éloi Rivard
c64395b980 Fixed Docker image memberof file path 2022-11-15 14:13:23 +01:00
Éloi Rivard
d559d8774a Refactored demo instanciation 2022-11-15 12:47:44 +01:00
Éloi Rivard
1946f283fc Added 'code_challenge_methods_supported' in well-known configuration 2022-11-06 17:13:12 +01:00
Éloi Rivard
4163d2eb13 Stop using the deprecated FLASK_ENV environment variable 2022-11-01 12:56:07 +01:00
Éloi Rivard
4f729caf2e Implemented dynamic client registration 2022-10-24 10:00:32 +02:00
Éloi Rivard
e86eab63cd Attempt to fix RTD compilation 2022-07-20 11:16:38 +02:00
Éloi Rivard
32268ecab5 Demo UI refresh fixes 2022-07-08 10:08:00 +02:00
Éloi Rivard
b51d9dd85f Demo UI refresh 2022-07-08 10:01:36 +02:00
Éloi Rivard
5b31da36ce Minor demo improvements 2022-07-07 16:24:42 +02:00
Éloi Rivard
c8281969d8 Added support for a postalAddress field 2022-07-07 14:46:02 +02:00
Éloi Rivard
95ec09fe54 Implemented RP-initiated logout 2022-06-02 17:56:10 +02:00
Éloi Rivard
8ee91e6d0f Added the audience in the demo data 2022-06-02 12:48:35 +02:00
Éloi Rivard
c86f62ad50 Demo minor variable renaming 2022-06-02 12:44:35 +02:00
Éloi Rivard
38401005e7 The demo now uses poetry 2022-05-13 16:47:48 +02:00
Éloi Rivard
a1c4f7a278 Bumped to authlib 1 2022-04-10 17:04:38 +02:00
Éloi Rivard
8217d423ad Added an option to disable self edition 2022-04-06 17:54:39 +02:00
Éloi Rivard
f496617f81 Fixed documentation about HIDE_INVALID_LOGINS 2022-04-06 17:34:30 +02:00
Éloi Rivard
b7b6040a3e Added an option to disable password recovery 2022-04-05 09:56:38 +02:00
emillumine
239fce706f make demo entirely runnable with docker-compose 2022-03-18 17:44:58 +01:00
Éloi Rivard
07d1826905 Fixed some packaging issues 2022-03-08 19:22:52 +01:00
Stéphane Blondon
1e2c879a82 find slapadd and ldapadd binaries on debian 11 2022-01-07 13:59:19 +01:00