Bonjour, Pour mieux comprendre mon problème, voici les informations à ma disposition : log Galette et configuration. J'ai un peu trafiqué les mots de passe et autres chaines de caractères d'identification. Merci pour votre aide, Pierre *Configuration plugin * global: password: sOlCzE88GJmMw5y galette_nc: title: 'nextcloud' redirect_logout: 'https://cloud.onzecplus.org' authorize: uptodate scopes: - member *Log d'une connexion* 10.0.20.101 - 2025-01-15 07:48:47 - DEBUG - Trying to set locale to fr_FR 10.0.20.101 - 2025-01-15 07:48:48 - DEBUG - Redirect to /webroot/plugins/oauth2/login?redirect_url=%2Fwebroot%2Fplugins%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3Dgalette_nc%26redirect_uri%3Dhttps%253A%252F%252Fcloud.onzecplus.org%252Findex.php%252Fapps%252Fsociallogin%252Fcustom_oauth2%252Fg%26scope%3D%26state%3DHA-W6B1D48IJTEKH0Z23PNV9YORL7C 10.0.20.101 - 2025-01-15 07:48:48 - DEBUG - login() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/login?redirect_url=%... GET dump: Array ( [redirect_url] => /webroot/plugins/oauth2/authorize?response_type=code&client_id=galette_nc&redirect_uri=https%3A%2F%2Fcloud.onzecplus.org%2Findex.php%2Fapps%2Fsociallogin%2Fcustom_oauth2%2Fg&scope=&state=HA-W6B1D48IJTEKH0Z23PNV9YORL7C ] 10.0.20.103 - 2025-01-15 07:48:53 - DEBUG - login() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/login POST dump: Array ( [login] => pattar [password] => HIDDEN [ident] => 1 [csrf_name] => csrf67876860334c4 [csrf_value] => cSp1kU7HOT3FIPenrLNxnDy+jr/rlk3ek8H8dtlWvQZFSECgev8JDvwUwJLNhkX6Xdu2i96mLL2m+ZoQ72OOMQ== ] 10.0.20.103 - 2025-01-15 07:48:53 - INFO - User `pattar` logged in. 10.0.20.103 - 2025-01-15 07:48:53 - DEBUG - Trying to set locale to fr_FR 10.0.20.103 - 2025-01-15 07:48:53 - DEBUG - UserHelper::login(pattar) return '2' 10.0.20.103 - 2025-01-15 07:48:53 - DEBUG - Scopes: member 10.0.20.103 - 2025-01-15 07:48:53 - DEBUG - Old Temporary passwords have been deleted. 10.0.20.105 - 2025-01-15 07:48:55 - DEBUG - authorization/authorize() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/authorize?response_t... GET dump: Array ( [response_type] => code [client_id] => galette_nc [scope] => [state] => HA-W6B1D48IJTEKH0Z23PNV9YORL7C [redirect_uri] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g ] 10.0.20.105 - 2025-01-15 07:48:55 - DEBUG - Auto add redirect_uri to cache oauth2_galette_nc.redirect_uri.txt: https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g 10.0.20.105 - 2025-01-15 07:48:55 - DEBUG - Auto add redirect_uri ok. 10.0.20.105 - 2025-01-15 07:48:55 - DEBUG - getClientEntity() GaletteOAuth2\Entities\ClientEntity Object ( [identifier:protected] => galette_nc [name:protected] => galette_nc [redirectUri:protected] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g [isConfidential:protected] => 1 ] 10.0.20.105 - 2025-01-15 07:48:55 - DEBUG - Scopes: member 10.0.20.102 - 2025-01-15 07:49:02 - DEBUG - authorization/doAuthorize() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/authorize?response_t... GET dump: Array ( [response_type] => code [client_id] => galette_nc [scope] => [state] => HA-W6B1D48IJTEKH0Z23PNV9YORL7C [redirect_uri] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g ] POST dump: Array ( [csrf_name] => csrf67876860334c4 [csrf_value] => a4nxuGWX6adMYRXAk25Jh2vTO7ER7PsbEAAWBA809hBf68SJUa/ZlHVVIvXyW33hCrYDhSTcmnglOHBiOQHFJw== [approve] => ] 10.0.20.102 - 2025-01-15 07:49:02 - DEBUG - getClientEntity() GaletteOAuth2\Entities\ClientEntity Object ( [identifier:protected] => galette_nc [name:protected] => galette_nc [redirectUri:protected] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g [isConfidential:protected] => 1 ] 10.0.20.102 - 2025-01-15 07:49:02 - DEBUG - Scopes: member 10.0.20.102 - 2025-01-15 07:49:02 - DEBUG - authorization/doAuthorize() exit ok 10.0.20.103 - 2025-01-15 07:49:06 - DEBUG - Trying to set locale to en_US 10.0.20.103 - 2025-01-15 07:49:07 - DEBUG - authorization/token() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/access_token POST dump: Array ( [client_id] => galette_nc [client_secret] => sOlCzE88GJmMw5y [grant_type] => authorization_code [redirect_uri] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g [code] => def50200d5cff5019d4ddcbb651e580590a53347ced76c9f3c1125ad3252b49c1b459205522fd6b7f094670a53fc92e55fe4f1ff728b7f1b0ffc8ec423b59f330b77291efbec4689a7c89c7ccfbaec67ac3fd337d6932196a81e04609f031ee371635459feb104a153039177ab60f3cc5149287a6f7dec112c429c71f5260a04ea2c9743e589f9ae8eea371bf03b076c4653e6e09dd5c0862cbdbb707ce62405080243ad8cd693eadabd4c7981a56516f119f2aa8629c9b609d77eb72ae983c9025b70490143886731ca3c94e1bdf3da4a7a199bd1af3e75b3ef945be08426307a4334bc1ffee07814248bc146cb12479bdf296f9a8a011f72c447e193f2f9a1403a1e3a991e74275261c85efca1a8c569e07f30cf93e61309d51494456c9ea1c729094e3894057e9c03616a4fa78a05c56d627502576dc2f342137b8b0de9cfedad8ac19aa0b072b55d29e885bf0dde15539fecc183ae41007d35aee193f3442e7c160bd52d8f5a7bf2a55b4eb680525151669e8252bdd91e1bfe97272abf09c469a369f7cafa6c41883764650ba121df038c ] 10.0.20.103 - 2025-01-15 07:49:07 - DEBUG - getClientEntity() GaletteOAuth2\Entities\ClientEntity Object ( [identifier:protected] => galette_nc [name:protected] => galette_nc [redirectUri:protected] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g [isConfidential:protected] => 1 ] 10.0.20.103 - 2025-01-15 07:49:07 - DEBUG - getClientEntity() GaletteOAuth2\Entities\ClientEntity Object ( [identifier:protected] => galette_nc [name:protected] => galette_nc [redirectUri:protected] => https://cloud.onzecplus.org/index.php/apps/sociallogin/custom_oauth2/g [isConfidential:protected] => 1 ] 10.0.20.103 - 2025-01-15 07:49:07 - DEBUG - authorization/token() exit ok 10.0.20.106 - 2025-01-15 07:49:08 - DEBUG - Trying to set locale to en_US 10.0.20.106 - 2025-01-15 07:49:08 - DEBUG - api/user() - URI: https://galette.onzecplus.org:80/webroot/plugins/oauth2/user Le 14/01/2025 à 14:04, Johan Cwiklinski a écrit :
Salut,
Le 14/01/2025 à 12:33, Pierre Attar a écrit :
Bonjour,
J'essaye de mettre en place le plugin oauth pour l'utiliser sur nextcloud.
Dans un premier temps, j'ai un truc étrange sous galette avec une approbation d'un scope vide. [...]
Je pense que c'est un problème de configuration, il faudrait voir comment est configuré le plugin.
Si je le déselectionne, il semble que galette soit content (pas de message d'erreur dans le log), mais je me retrouve avec ce message dans nextcloud qui semble dire que cela n'a pas fonctionné. [...]
Il devrait y avoir davantage d'informations dans les logs côté Galette.
PS: pour un nouveau sujet, merci de ne pas répondre à un sujet existant.
++