mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
30 lines
581 B
TypeScript
30 lines
581 B
TypeScript
/* tslint:disable:no-empty */
|
|
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);
|
|
}
|
|
}
|