]> BookStack Code Mirror - bookstack/commit
Auth: Refactored OIDC RP-logout PR code, Extracted logout
authorDan Brown <redacted>
Wed, 6 Dec 2023 13:49:53 +0000 (13:49 +0000)
committerDan Brown <redacted>
Wed, 6 Dec 2023 13:49:53 +0000 (13:49 +0000)
commitbba7dcce49394f478bd401486a2d8cba23ff79ac
treeb8ea54014a1db4faa46575ed2b8ba0601c38d424
parentcc10d1ddfc652f6bcf3bbf61d5ec2e2861394c03
Auth: Refactored OIDC RP-logout PR code, Extracted logout

Extracted logout to the login service so the logic can be shared instead
of re-implemented at each stage. For this, the SocialAuthService was
split so the driver management is in its own class, so it can be used
elsewhere without use (or circular dependencies) of the
SocialAuthService.

During review of #4467
17 files changed:
.env.example.complete
app/Access/Controllers/LoginController.php
app/Access/Controllers/OidcController.php
app/Access/Controllers/RegisterController.php
app/Access/Controllers/SocialController.php
app/Access/LoginService.php
app/Access/Oidc/OidcService.php
app/Access/Saml2Service.php
app/Access/SocialAuthService.php
app/Access/SocialDriverManager.php [new file with mode: 0644]
app/App/Providers/AppServiceProvider.php
app/Config/oidc.php
app/Theming/ThemeService.php
app/Users/Controllers/UserAccountController.php
app/Users/Controllers/UserController.php
resources/views/layouts/parts/header-user-menu.blade.php
routes/web.php