1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Merge branch 'fix/oidc-logout' into development

This commit is contained in:
Dan Brown
2023-12-06 12:14:43 +00:00
6 changed files with 86 additions and 8 deletions

View File

@@ -63,4 +63,18 @@ class OidcController extends Controller
return redirect()->intended();
}
/**
* OIDC Logout Feature: Start the authorization logout flow via OIDC.
*/
public function logout()
{
try {
return $this->oidcService->logout();
} catch (OidcException $exception) {
$this->showErrorNotification($exception->getMessage());
return redirect('/logout');
}
}
}