Browse Source
fix(Session): avoid password confirmation on SSO
fix(Session): avoid password confirmation on SSO
SSO backends like SAML and OIDC tried a trick to suppress password confirmations as they are not possible by design. At least for SAML it was not reliable when existing user backends where used as user repositories. Now we are setting a special scope with the token, and also make sure that the scope is taken over when tokens are regenerated. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>pull/43942/head
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
9 changed files with 143 additions and 42 deletions
-
5core/Controller/OCJSController.php
-
3lib/private/AppFramework/DependencyInjection/DIContainer.php
-
26lib/private/AppFramework/Middleware/Security/PasswordConfirmationMiddleware.php
-
1lib/private/Authentication/Token/PublicKeyTokenProvider.php
-
73lib/private/Template/JSConfigHelper.php
-
4lib/private/TemplateLayout.php
-
9lib/private/legacy/OC_User.php
-
4tests/lib/AppFramework/Middleware/Security/Mock/PasswordConfirmationMiddlewareController.php
-
60tests/lib/AppFramework/Middleware/Security/PasswordConfirmationMiddlewareTest.php
Write
Preview
Loading…
Cancel
Save
Reference in new issue