pulseauthenticate
Version:
Common Authentication library for pulse angular apps
21 lines (20 loc) • 689 B
TypeScript
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
export declare class AuthenticationService {
private http;
static hostname: string;
static istools: boolean;
userObj: any;
constructor(http: Http);
login(username: string, password: string): Observable<any>;
getAuthenticationObject(): any;
isAuthenticated(): boolean;
forgotPassword(email: string): Observable<any>;
logout(): void;
}
export interface AuthenticationServiceConfig {
hostname: string;
istools: boolean;
}
export declare function ConfigureAuthenticationService(configuration: AuthenticationServiceConfig): void;