Commit Graph

132 Commits

Author SHA1 Message Date
Aina Sitraka
32aa1db879 PHRAS-4108 openid : add claims mapping and groups filtering (#4563)
* openid add group mapping

* add  migration patch for configuration injection
2024-12-12 15:46:04 +01:00
jygaulier
7ac7417fc4 PHRAS-4106_ignore-openid-groups (#4561)
* add: setting `usegroups` : set to false to disable groups (even if the provider returns groups)
fix : `birthgroup` can be null
fix : `everyone-group` can be null

* add default setting

* add patch

Co-authored-by: aynsix <asr@esokia-webagency.com>
2024-12-03 14:54:55 +01:00
Aina Sitraka
0c0021d001 PHRAS-4073: Register form - improvement (#4520)
* sanitize register form

* fix
2024-06-10 16:09:57 +02:00
Aina Sitraka
5769be7799 keycloak expose refresh token (#4512) 2024-06-06 10:04:29 +02:00
Aina Sitraka
d6849fd580 PHRAS-4007: Auth provider - add keycloak provider - openid (#4462)
* keycloak provider

* add readme

* comment regenarete password

* add exclusive option to provider an column can_renew_passwor to user

* default exclusive false

* always compatible with psauth

* bump image tag .env

* bump Version to 4.1.8-rc9

* bump version to rc12

* add autoconnect
2024-04-30 14:15:56 +02:00
Aina Sitraka
f02e5b8e5f PHRAS-4023 hcaptcha in Phraseanet (#4473)
* use hcaptcha

* add conf

* use captcha-provider key instead of captchas-enabled in configuration

* fix test

* test

* bump back version to rc9
2024-02-29 14:59:46 +01:00
Aina Sitraka
ec4a22527d PHRAS-3890: Admin - add "auth failure" - display and purge auth failure - only for super U (#4368)
* admin auth failure

* add check superU
2023-09-05 17:25:08 +02:00
Aina Sitraka
9902457c42 PHRAS-1718 add google recaptcha (#4224)
* PHRAS-1718 Add google recaptcha lib - Dont merge some quick fixes remaining

* PHRAS-1718 Add error on registration form if captcha is not filled

* Update dependencies

* PHRAS-1718 Add trials-before-display var on admin setup form. Add integer constraint on this field

* fix

* test

* test

* fix

* test

* test

* fix

* test

* fix

* test

* add captcha on forgotten password

* fix

* add patch

* add locale on captcha

* bump version

Co-authored-by: Xavier Rousset <xrousset78800@gmail.com>
2023-01-25 18:30:46 +01:00
jygaulier
2dfd82d618 add userAuthProvider entry after user creation 2023-01-16 17:47:47 +01:00
jygaulier
4821984d2b allow multiple calls to closeAccount() (#4201) 2022-12-28 18:07:01 +01:00
Aina Sitraka
26f7453371 PHRAS-3783 generate translation (#4197) 2022-12-20 17:19:05 +01:00
jygaulier
2ee51887e0 PHRAS-3789 add auto-connect-idp-name option (#4194)
patch to add missing options to conf
2022-12-13 19:43:50 +01:00
jygaulier
7e7435469d PHRAS-2995_phr-as-auth-idp-BIS (#4180)
* WIP ; allow multiple instances of some auth clients (migrate conf) ; add ps-oauth ; remove google+

* WIP ; fix ps-oauth ; fix tests

* WIP ; add api-auth to extra_hosts

* WIP ; fix yaml syntax error

* WIP ; fix yaml syntax error ; better conf sample

* WIP ; add "everyone-group"

* WIP ; add the provider-id in session

* WIP ; add getOptions() to providers (so phr/expose can filter providers)

* WIP ; add auto-logout option so logout from phr also logouts from ps-auth

* connect to expose using IDP from connected user

* WIP ; auto-logout redirects to phr home

* unnecessary session var

* unused

* fix

* catch some error

* fix navigation in train thumbnail

* update file version

* pass params in session to have constant redirect_uri ; add debug

* invalidate session --> parade test ok

* cleanup
2022-12-01 16:27:54 +01:00
Aina Sitraka
e4760b88f2 PHRAS-3694 bin/maintenance clean:users finish (#4139)
* clean users

* fix help

* add usertype

* relance user connection

* unused option

* test

* send token to connect to phraseanet

* add alpha on help

* bump rc6, add alpha , fix input to integer
Co-authored-by: jygaulier <gaulier@alchemy.fr>
2022-10-06 18:10:15 +02:00
Aina Sitraka
ab1ef68af2 PHRAS-3223 Admin - user details - display AuthFailure and Authprovider info (#4002)
PHRAS-3223
* add auth failure tab

* auth provider list

* api oauth code list

* fix limit

* delete modificaiton date

* add mail locked only filter

* add badge on api list
2022-04-06 10:45:49 +02:00
jygaulier
ce28b592a2 PHRAS-1974_rgpd-remove-unactive-users
fix : user.last_connection is updated when user logs in.
add : patch to init user.last_connection (from dbox.log)
todo : bin/c to clean up dead accounts.
2021-08-04 12:49:13 +02:00
aina esokia
7041a11873 PHRAS-2283 port to 4.1 access autorisation windows 2021-02-11 16:48:49 +03:00
aina esokia
215562ab74 PHRAS-3256 take in account langage in mail 2021-02-03 11:44:42 +03:00
aina esokia
cfe310b835 fix date in mail 2021-01-29 14:57:05 +03:00
aynsix
5d8132b08d user webhook: registration and delete 2019-09-20 18:01:23 +04:00
jygaulier
b9aa04be6b PHRAS-2096_Autoregister-Whitelist_MASTER (#2642)
Add a whitelist to filter autoregistration
2018-06-21 18:35:44 +02:00
aina-esokia
ff67cd5ac6 port authorize with providers 2018-05-29 17:47:19 +04:00
Toky Herizo
6c853cf98c udpate facebook SDK to 5.6 2018-02-12 11:24:14 +04:00
jygaulier
8117d1ebc0 PHRAS-1751_GOOGLE-AUTH_master (#2384)
* PHRAS-1751_GOOGLE-AUTH_master
replace lib "alchemy/google-plus-api-client" by "google/apiclient"
had to downgrade facebook/php-sdk from 4 (does not exists ?) to 3 (abandoned anyway) to allow composer update.
see PHRAS-1752

* PHRAS-1751_GOOGLE-AUTH_master
revert composer.lock, only remove & update new google-sdk (composer full update make tests boot to fail. to see later)

* PHRAS-1751_GOOGLE-AUTH_master
fix unit test
2017-11-30 10:45:56 +01:00
Benoît Burnichon
03b821acb7 Merge branch '4.0' 2016-03-16 17:21:57 +01:00
Benoît Burnichon
f3ca8121de Fix Injected repository into SuggestionFinder. 2016-03-15 12:21:56 +01:00
Benoît Burnichon
3944580f8c fix return type from Failure Manager.
Also require injection of an AuthFailureRepository instance.
Add flush of entities.
2016-03-15 12:21:56 +01:00
Benoît Burnichon
6cda4eec7e Merge branch '4.0' 2016-03-11 21:50:23 +01:00
Scrutinizer Auto-Fixer
d8d4d79309 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-03-11 16:13:39 +00:00
Benoît Burnichon
c4daafc5e6 Remove undefined variable in GooglePlus Authentication Provider 2016-03-01 13:59:41 +01:00
Thibaud Fabre
74366feac3 Fix failing tests
- SQL query error
- Reload updated collections in tests (error in test logic)
2016-01-07 18:57:19 +01:00
Benoît Burnichon
51023c5533 bump copyright year 2016-01-05 13:38:14 +01:00
Thibaud Fabre
f38179f941 Fix invalid method call 2015-10-21 18:01:43 +02:00
Thibaud Fabre
bcb502301b Fix incorrect setter mapping and lax up assertions 2015-10-20 18:51:57 +02:00
Thibaud Fabre
6882424a01 Add registration related webhooks 2015-10-20 17:45:16 +02:00
Thibaud Fabre
b0d7d9802d User registration refactoring 2015-10-20 09:15:58 +02:00
Thibaud Fabre
c957996d60 WIP Registration / collections 2015-10-20 09:15:58 +02:00
Thibaud Fabre
82697bc4c2 WIP Account management 2015-10-20 09:15:57 +02:00
Thibaud Fabre
5869f1465d WIP recovery 2015-10-20 09:14:16 +02:00
Thibaud Fabre
f02fdc186f User registration refactoring 2015-10-20 09:12:22 +02:00
Thibaud Fabre
bfaa3e9614 WIP Registration / collections 2015-10-20 09:12:22 +02:00
Thibaud Fabre
59a6b39e55 WIP Account management 2015-10-20 09:12:22 +02:00
Thibaud Fabre
19a6f531d9 WIP recovery 2015-10-20 09:12:22 +02:00
Thibaud Fabre
960f7199c0 Return string value 2015-10-07 18:36:06 +02:00
Thibaud Fabre
6af2bc902f Pass tests 2015-09-22 17:18:39 +02:00
Thibaud Fabre
24205dbea1 Extract recovery logic in service 2015-09-22 16:21:47 +02:00
Benoît Burnichon
78187f7103 PHPCS fixup 2015-07-02 12:33:19 +02:00
Benoît Burnichon
d645b92afa Add AclAware Trait 2015-07-02 12:33:18 +02:00
Benoît Burnichon
b79eb27632 Fixup NativeAuthentication arguments 2015-07-02 12:27:25 +02:00
Benoît Burnichon
8e60e3f3ab Remove factory method from interface as not used and currently throwing Fatal Error. 2015-07-02 12:27:25 +02:00