mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
45 lines
816 B
TypeScript
45 lines
816 B
TypeScript
/* eslint-disable no-empty, @typescript-eslint/no-empty-function */
|
|
import {
|
|
Observable,
|
|
of as observableOf,
|
|
} from 'rxjs';
|
|
|
|
export class AuthServiceMock {
|
|
public checksAuthenticationToken() {
|
|
return;
|
|
}
|
|
public buildAuthHeader() {
|
|
return 'auth-header';
|
|
}
|
|
|
|
public getShortlivedToken(): Observable<string> {
|
|
return observableOf('token');
|
|
}
|
|
|
|
public isAuthenticated(): Observable<boolean> {
|
|
return observableOf(true);
|
|
}
|
|
|
|
public setRedirectUrl(url: string) {
|
|
}
|
|
|
|
public trackTokenExpiration(): void {
|
|
}
|
|
|
|
public isUserIdle(): Observable<boolean> {
|
|
return observableOf(false);
|
|
}
|
|
|
|
public getImpersonateID(): string {
|
|
return null;
|
|
}
|
|
|
|
public getRedirectUrl(): Observable<string> {
|
|
return;
|
|
}
|
|
|
|
public getExternalServerRedirectUrl(): string {
|
|
return;
|
|
}
|
|
}
|