Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password policy hooks in when OpenID is used #359

Open
T0mWz opened this issue Nov 23, 2021 · 0 comments
Open

Password policy hooks in when OpenID is used #359

T0mWz opened this issue Nov 23, 2021 · 0 comments

Comments

@T0mWz
Copy link

T0mWz commented Nov 23, 2021

When Password Policy is enabled / configured, then I'm not able to login via OpenID.

So OpenID should be excluded for the password policy

{"reqId":"YZ0A28y8G@Op48WXa8oZlQAAAAM","level":3,"time":"23\/Nov\/2021:15:55:24","remoteAddr":"10.234.0.3","user":"--","app":"index","method":"GET","url":"\/index.php\/apps\/openidconnect\/redirect?state=a42a77c06cf3bae190e4d6f58c42e543&session_state=0827fac1-dd7a-4fdc-aa8d-da3868f55dea&code=99ed09fa-5470-4707-9a98-ba9d2fe4b4db.0827fac1-dd7a-4fdc-aa8d-da3868f55dea.05340eac-1098-47b6-aa82-18144b4640b6","message":"Exception: {\"Exception\":\"OCA\\\\PasswordPolicy\\\\Rules\\\\PolicyException\",\"Message\":\"The password contains too few uppercase letters. At least one uppercase letter is required.\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/password_policy\\\/lib\\\/Engine.php(134): OCA\\\\PasswordPolicy\\\\Rules\\\\Uppercase->verify()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/password_policy\\\/lib\\\/HooksHandler.php(172): OCA\\\\PasswordPolicy\\\\Engine->verifyPassword()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/password_policy\\\/lib\\\/HooksHandler.php(149): OCA\\\\PasswordPolicy\\\\HooksHandler->verifyPassword()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/event-dispatcher\\\/EventDispatcher.php(264): OCA\\\\PasswordPolicy\\\\HooksHandler->verifyUserPassword()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/event-dispatcher\\\/EventDispatcher.php(239): Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher->doDispatch()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/event-dispatcher\\\/EventDispatcher.php(73): Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher->callListeners()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/User\\\/Manager.php(398): Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher->dispatch()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/Events\\\/EventEmitterTrait.php(50): OC\\\\User\\\\Manager->OC\\\\User\\\\{closure}(*** sensitive parameters replaced ***)\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/User\\\/Manager.php(415): OC\\\\User\\\\Manager->emittingCall()\\n#9 \\\/var\\\/www\\\/owncloud\\\/apps\\\/openidconnect\\\/lib\\\/Service\\\/AutoProvisioningService.php(100): OC\\\\User\\\\Manager->createUser()\\n#10 \\\/var\\\/www\\\/owncloud\\\/apps\\\/openidconnect\\\/lib\\\/Service\\\/UserLookupService.php(109): OCA\\\\OpenIdConnect\\\\Service\\\\AutoProvisioningService->createUser()\\n#11 \\\/var\\\/www\\\/owncloud\\\/apps\\\/openidconnect\\\/lib\\\/Controller\\\/LoginFlowController.php(142): OCA\\\\OpenIdConnect\\\\Service\\\\UserLookupService->lookupUser()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\OpenIdConnect\\\\Controller\\\\LoginFlowController->login(*** sensitive parameters replaced ***)\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#16 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant