forked from manfredsteyer/angular2-oauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoauth-service.d.ts
36 lines (36 loc) · 1.09 KB
/
oauth-service.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export declare class OAuthService {
clientId: string;
redirectUri: string;
loginUrl: string;
scope: string;
resource: string;
rngUrl: string;
oidc: boolean;
options: any;
state: string;
issuer: string;
validationHandler: any;
logoutUrl: string;
setStorage(storage: Storage): void;
private _storage;
createLoginUrl(state: any): Promise<string>;
initImplicitFlow(additionalState?: string): void;
callEventIfExists(options: any): void;
tryLogin(options: any): boolean;
processIdToken(idToken: any, accessToken: any): boolean;
getIdentityClaims(): any;
getIdToken(): any;
padBase64(base64data: any): any;
tryLoginWithIFrame(): void;
tryRefresh(timeoutInMsec: any): void;
getAccessToken(): any;
hasValidAccessToken(): boolean;
hasValidIdToken(): boolean;
authorizationHeader(): string;
logOut(): void;
createAndSaveNonce(): Promise<any>;
createNonce(): Promise<{}>;
getFragment(): {};
parseQueryString(queryString: any): {};
checkAtHash(accessToken: any, idClaims: any): boolean;
}