import { LOGIN_STATUS } from '../enum'; /** * Initial CIBA auth request * send from front-end */ export declare class CibaAuthRequestFrontendDto { userIdentifier: string; } /** * Initial CIBA auth request * * request: CibaAuthRequestRequestParamDto * client_assertion_type: urn:ietf:params:oauth:client-assertion-type:jwt-bearer * client_assertion: DeviceTokenJWTClaim * * send as form */ export declare class CibaAuthRequestDto { request: string; client_id: string; client_assertion_type: string; client_assertion: string; } /** * CIBA authentication request object * signed with shared [JWKS] key * * Send as `request` parameter (CibaAuthRequestDto) */ export declare class CibaAuthRequestRequestParamDto { login_hint_token: string; scope: string; acr_values: string; iss: string; aud: string; exp: number; binding_message: string; } /** * Signed with device private key * transformed to JWT * * Send as `client_assertion` parameter (CibaAuthRequestDto) */ export declare class DeviceTokenJWTClaimDto { iss: string; sub: string; aud: string; jti: string; iat: number; exp: number; } /** * Used by front-end to request from server * * - grant_type: 'ciba_status' * * Usually posted to /api/oidc/token */ export declare class CibaAuthStatusRequestFrontendDto { grant_type?: string; authRequestId: string; } /** * Initial CIBA auth request response */ export declare class CibaAuthRequestResponseDto { auth_req_id: string; expires_in: number; interval: number; } /** * REQUEST CIBA authentication status */ export declare class CibaAuthStatusRequestDto { grant_type: string; auth_req_id: string; client_id: string; client_assertion_type: string; client_assertion: string; } export declare class CibaAuthStatusResponseDto { /** * RESPONSE CIBA authentication status * * `access_token` and `id_token` will only fill * upon successfull authentication */ access_token?: string; id_token?: string; expires_in: number; token_type: string; } export declare class CibaRequestCacheDto { requestId: string; userId: string; status: LOGIN_STATUS; issue_at: Date; params: any; } export declare class CibaAuthSubmitRequestDto { requestId: string; status: LOGIN_STATUS; message?: string; }