Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Sep 18, 2024
1 parent 15ff109 commit c72bed9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/siop-oid4vp/lib/__tests__/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import crypto, { createHash } from 'crypto'

import { JwtPayload, parseJWT, SigningAlgo, uuidv4 } from '@sphereon/oid4vc-common'
import { SdJwtDecodedVerifiableCredentialWithKbJwtInput } from '@sphereon/pex'
import { IProofType } from '@sphereon/ssi-types'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand Down Expand Up @@ -40,6 +39,7 @@ import {
VERIFIERZ_PURPOSE_TO_VERIFY,
VERIFIERZ_PURPOSE_TO_VERIFY_NL,
} from './data/mockedData'
import { PartialSdJwtDecodedVerifiableCredential } from '@sphereon/pex/dist/main/lib'

export interface TESTKEY {
key: JWK
Expand Down Expand Up @@ -287,7 +287,7 @@ export const metadata: {
export const pexHasher = (data: string) => createHash('sha256').update(data).digest()

export const sdJwtVcPresentationSignCallback: PresentationSignCallback = async (_args) => {
const presentation = _args.presentation as SdJwtDecodedVerifiableCredentialWithKbJwtInput
const presentation = _args.presentation as PartialSdJwtDecodedVerifiableCredential

// In real life scenario, the KB-JWT must be signed
// As the KB-JWT is a normal JWT, the user does not need an sd-jwt implementation in the presentation sign callback
Expand Down
2 changes: 1 addition & 1 deletion packages/siop-oid4vp/lib/op/OP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class OP {
if (!responseUri) {
throw Error('No response URI present')
}
const authResponseAsURI = encodeJsonAsURI(payload, { arraysWithIndex: ['presentation_submission', 'vp_token'] })
const authResponseAsURI = encodeJsonAsURI(payload, { arraysWithIndex: ['presentation_submission'] })
return post(responseUri, authResponseAsURI, { contentType: ContentType.FORM_URL_ENCODED, exceptionOnHttpErrorStatus: true })
.then((result: SIOPResonse<unknown>) => {
void this.emitEvent(AuthorizationEvents.ON_AUTH_RESPONSE_SENT_SUCCESS, { correlationId, subject: response })
Expand Down
4 changes: 2 additions & 2 deletions packages/siop-oid4vp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"@astronautlabs/jsonpath": "^1.1.2",
"@sphereon/did-uni-client": "^0.6.2",
"@sphereon/oid4vc-common": "workspace:*",
"@sphereon/pex": "4.1.1-unstable.0",
"@sphereon/pex": "5.0.0-unstable.1",
"@sphereon/pex-models": "^2.3.1",
"@sphereon/kmp-mdl-mdoc": "0.2.0-SNAPSHOT.22",
"@sphereon/ssi-types": "0.22.0",
"@sphereon/ssi-types": "0.29.1-unstable.121",
"@sphereon/wellknown-dids-client": "^0.1.3",
"cross-fetch": "^4.0.0",
"debug": "^4.3.5",
Expand Down

0 comments on commit c72bed9

Please sign in to comment.