Skip to content

Commit

Permalink
chore: Siopv2 oid4vp fixes/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Oct 15, 2023
1 parent bd4dc9a commit efa15fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createAgent, IResolver } from '@veramo/core'
import { ISIOPv2OID4VPRPRestClient, SIOPv2OID4VPRPRestClient } from '../src'
import { AuthorizationRequestStateStatus, AuthStatusResponse, GenerateAuthRequestURIResponse } from '@sphereon/ssi-sdk.siopv2-oid4vp-common'
import { AuthStatusResponse, GenerateAuthRequestURIResponse } from '@sphereon/ssi-sdk.siopv2-oid4vp-common'

const definitionId = '9449e2db-791f-407c-b086-c21cc677d2e0'
const baseUrl = 'https://ssi-backend.sphereon.com'
Expand All @@ -13,14 +13,14 @@ xdescribe('@sphereon/siopv2-oid4vp-rp-rest-client', () => {
// disabled because the delete call hangs. Since endpoints will be updated anyway, skiping this for now
xit('should call the endpoint for siopClientRemoveAuthRequestSession', async () => {
const authRequest: GenerateAuthRequestURIResponse = await agent.siopClientCreateAuthRequest({})
agent.siopClientRemoveAuthRequestState({
await agent.siopClientRemoveAuthRequestState({
correlationId: authRequest.correlationId,
})

const result: AuthStatusResponse = await agent.siopClientGetAuthStatus({
correlationId: authRequest.correlationId,
})
expect(result.status).toBe(AuthorizationRequestStateStatus.ERROR)
expect(result.status).toBe('error')
expect(result.error).toBe('No authentication request mapping could be found for the given URL.')
})

Expand Down

0 comments on commit efa15fc

Please sign in to comment.