import { Request } from 'express'; import { UserDTO } from '../../../common/entities/UserDTO'; export declare class OIDCAuthService { private static configurationPromise; /** * Step 1 of the OIDC authorization code flow: the URL of the authentication request at the provider. * The provider sends the authentication response back to Users.oidc.redirectUri. */ static getAuthenticationRequestUrl(req: Request): Promise; /** * Step 2 of the OIDC authorization code flow: validates the authentication response, * exchanges its code for the tokens and returns with the user of their claims. */ static getUserFromAuthenticationResponse(req: Request): Promise; private static findUser; /** * Strict security: the app user is bound to the provider account (issuer + subject). * Name matching is only used to link a not yet linked user with a limited role. */ private static findStrictUser; private static createUser; /** * Returns the ID token claims. Some providers only return * some claims (e.g.: preferred_username, email) from the userinfo endpoint, * so if any of the required ones is missing, they are filled from there. * ID token claims always take precedence. */ private static getClaims; /** * The provider's discovery document URL. Like with openid-client 5, the issuer URL setting * may also be the discovery document URL itself. * The discovery document doesn't have to repeat the issuer URL setting character by character * (e.g.: a missing trailing slash). The ID tokens are still checked against the issuer it names. */ private static getDiscoveryUrl; private static discover; private static getConfiguration; }