import { IContext } from '../config/icontext'; import type { Request, Response } from 'express'; import { ServiceProvider, SAMLAssertResponse } from 'saml2-js'; /** * Method to create XML metadata for the ServiceProvider. * * @author Kenble - f.taddia * @param res : HTTP response * @param samlProvider : SAML2 ServiceProvider for which to generate XML metadata */ export declare function handleSamlMetadata(res: Response, samlProvider: ServiceProvider): void; /** * Method to initialize and make login request to SAML2 IdP. * * @author Kenble - f.taddia * @param req : HTTP request for authentication * @param res : HTTP response for authentication * @param context : application context */ export declare function handleSamlSso(req: Request, res: Response, context: IContext): Promise; /** * Method to finalize SAML2 authentication, convert attributes to OIDC claims, and invoke * OIDC authentication termination. * * @author Kenble - f.taddia * @param req : HTTP request for authentication * @param res : HTTP response for authentication * @param context : application context */ export declare function handleSamlAcs(req: Request, res: Response, context: IContext): Promise; /** * Useful method to convert SAML2 attributes into OIDC claims, according to the mapping specified * in the application configuration. * * @author Kenble - f.taddia * @param context : application context * @param samlUser : list of SAML2 attributes present in the response * @returns returns the list of OIDC claims converted from SAML2 attributes */ export declare function samlAttributesToOidcClaims(context: IContext, samlUser: SAMLAssertResponse['user']): Record;