UNPKG

@universis/common

Version:

Universis - common directives and services

28 lines (27 loc) 1.22 kB
import { ActivatedRoute } from '@angular/router'; import { AngularDataContext } from '@themost/angular'; import { ConfigurationService } from '../../shared/services/configuration.service'; import { ActivatedUser } from './activated-user.service'; import { AuthCallbackResponse, AuthenticationService, OnRefreshToken } from './authentication.service'; import { HttpClient } from '@angular/common/http'; import * as i0 from "@angular/core"; export declare class PkceAuthenticationService extends AuthenticationService implements OnRefreshToken { private http; constructor(http: HttpClient, configuration: ConfigurationService, context: AngularDataContext, activatedRoute: ActivatedRoute, activatedUser: ActivatedUser); /** * Refreshes OAuth2 access token * @returns {AuthCallbackResponse=} */ refresh(): Promise<AuthCallbackResponse | void>; /** * Authorize user by using PKCE Authorization Flow */ authorize(): void; /** * H * @param {*} queryParams */ callback(queryParams: any): Promise<any>; static ɵfac: i0.ɵɵFactoryDeclaration<PkceAuthenticationService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PkceAuthenticationService>; }