Files
dspace-angular/src/app/core/auth/models/auth-status.model.ts
2019-04-26 16:40:49 +02:00

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;
}