@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
33 lines (32 loc) • 1.14 kB
TypeScript
import AbstractConnectManager from './abstractconnectmanager.js';
export default class OpenIdConnectManager extends AbstractConnectManager {
private authorizationServer?;
private silentLoginIframe?;
private sendTimeoutErrorCallbackTimeoutId;
private get issuerConfig();
private authProcessed;
private isAuthentified;
private isLoggedOut;
private hasAuthError;
initialize(): Promise<void>;
/**
* Code verifier for Authorization Code Grant with Proof Key for Code Exchange (PKCE)
* It has to be the same when coming back from the issuer after a redirect
* Therefore, we keep it in localStorage.
*/
private get codeVerifier();
private set codeVerifier(value);
private getAuthorizationServer;
private getAuthorizationUrl;
private getClient;
login(): Promise<void>;
silentLogin(): Promise<void>;
logout(): Promise<void>;
private silentLoginViaIframe;
private handleSilentLoggedInViaIframe;
private redirectToIssuerLogin;
private handleLoggedInToIssuer;
private setToken;
private refreshToken;
private logoutFromIssuer;
}