mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
28 lines
658 B
TypeScript
28 lines
658 B
TypeScript
import { AuthError } from './auth-error.model';
|
|
import { AuthTokenInfo } from './auth-token-info.model';
|
|
import { EPerson } from '../../eperson/models/eperson.model';
|
|
import { RemoteData } from '../../data/remote-data';
|
|
import { Observable } from 'rxjs';
|
|
import { CacheableObject, TypedObject } from '../../cache/object-cache.reducer';
|
|
import { ResourceType } from '../../shared/resource-type';
|
|
|
|
export class AuthStatus implements CacheableObject, TypedObject {
|
|
|
|
id: string;
|
|
|
|
okay: boolean;
|
|
|
|
authenticated: boolean;
|
|
|
|
error?: AuthError;
|
|
|
|
eperson: Observable<RemoteData<EPerson>>;
|
|
|
|
token?: AuthTokenInfo;
|
|
|
|
self: string;
|
|
|
|
type: ResourceType;
|
|
|
|
}
|