Skip to content

Commit d7b55db

Browse files
Merge pull request #203 from Sphereon-Opensource/feature/SSISDK-55
feature/SSISDK-55
2 parents 0e9f278 + 0b3c98d commit d7b55db

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {DcqlPresentation, DcqlQuery} from 'dcql'
1313
import {verifyRevocation} from '../helpers'
1414
import {AuthorizationResponse} from './AuthorizationResponse'
1515
import {Dcql} from './Dcql'
16-
import {RevocationVerification, VerifiedOpenID4VPSubmission} from '../types'
16+
import {PresentationSubmission, RevocationVerification, VerifiedOpenID4VPSubmission} from '../types'
1717
import {VerifyAuthorizationResponseOpts,} from './types'
1818

1919
export const extractNonceFromWrappedVerifiablePresentation = (wrappedVp: WrappedVerifiablePresentation): string | undefined => {
@@ -101,7 +101,7 @@ export const verifyPresentations = async (
101101
export const extractDcqlPresentationFromDcqlVpToken = (
102102
vpToken: DcqlPresentation.Input | string,
103103
opts?: { hasher?: HasherSync },
104-
): { [credentialQueryId: string]: WrappedVerifiablePresentation } => {
104+
): PresentationSubmission => {
105105
return Object.fromEntries(
106106
Object.entries(DcqlPresentation.parse(vpToken)).map(([credentialQueryId, vp]) => [
107107
credentialQueryId,

packages/siop-oid4vp/lib/types/SIOP.types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,14 @@ export interface VerifiedIDToken {
482482

483483
export interface VerifiedOpenID4VPSubmission {
484484
dcqlQuery: DcqlQuery
485-
presentation: { [credentialQueryId: string]: WrappedVerifiablePresentation }
485+
presentation: PresentationSubmission
486486
nonce?: string
487487
}
488488

489+
export interface PresentationSubmission {
490+
[credentialQueryId: string]: WrappedVerifiablePresentation
491+
}
492+
489493
export interface VerifiedAuthorizationResponse {
490494
correlationId: string
491495
authorizationResponse: AuthorizationResponse

0 commit comments

Comments
 (0)