import { Request, Response } from 'express'; import { DyNTS_AuthService } from '../../../_services/core/auth.service'; /** * OAuth2 Authentication Service implementation * * This service handles OAuth2 specific authentication flows and token management * * @example * const authService = DyNTS_OAuth2_AuthService.getInstance(); * await authService.authenticate_token(req, res); */ export declare class DyNTS_OAuth2_AuthService extends DyNTS_AuthService { static getInstance(): DyNTS_OAuth2_AuthService; private readonly controlService; readonly authenticate_token: (req: Request, res: Response) => Promise; readonly authenticate_tokenSelf: (req: Request, res: Response) => Promise; readonly authenticate_tokenPerm_accUsageData: (req: Request, res: Response) => Promise; /** * Gets the issuer (user ID) from the OAuth2 token in the request * @param req Express Request object * @returns The issuer ID from the token */ getIssuerFromRequest(req: Request): string; /** * Gets the username from the OAuth2 token in the request * @param req Express Request object * @returns The username from the token */ getUsernameFromRequest(req: Request): string; } //# sourceMappingURL=oauth2.auth-service.d.ts.map