* overhaul OIDC: backend token exchange, security hardening, group mapping, session management * add unit tests for OIDC overhaul (166 tests across 12 classes) * rewrite unit tests for metadata and extractor packages (~450 tests) * fix Kobo sync timeout with large magic shelves (#3172)
This commit is contained in:
@@ -18,6 +18,7 @@ import {LibraryService} from './features/book/service/library.service';
|
||||
import {LibraryHealthService} from './features/book/service/library-health.service';
|
||||
import {LibraryLoadingService} from './features/library-creator/library-loading.service';
|
||||
import {scan, withLatestFrom} from 'rxjs/operators';
|
||||
import {AuthService} from './shared/service/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -44,6 +45,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
private libraryService = inject(LibraryService);
|
||||
private libraryHealthService = inject(LibraryHealthService);
|
||||
private libraryLoadingService = inject(LibraryLoadingService);
|
||||
private authService = inject(AuthService);
|
||||
|
||||
ngOnInit(): void {
|
||||
window.addEventListener('online', this.onOnline);
|
||||
@@ -149,6 +151,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
this.taskService.handleTaskProgress(progress);
|
||||
})
|
||||
);
|
||||
this.subscriptions.push(
|
||||
this.rxStompService.watch('/user/queue/session-revoked').subscribe(() => {
|
||||
this.authService.forceLogout('session_revoked');
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
|
||||
Reference in New Issue
Block a user