diff --git a/packages/dids/src/did-ion.ts b/packages/dids/src/did-ion.ts index 1eaed9daa..baca61304 100644 --- a/packages/dids/src/did-ion.ts +++ b/packages/dids/src/did-ion.ts @@ -84,11 +84,11 @@ export class DidIonMethod implements DidMethod { operationsEndpoint?: string }): Promise { const { - challengeEnabled = true, + challengeEnabled = false, challengeEndpoint = 'https://beta.ion.msidentity.com/api/v1.0/proof-of-work-challenge', keySet, services, - operationsEndpoint = 'https://beta.ion.msidentity.com/api/v1.0/operations' + operationsEndpoint = 'https://ion.tbd.engineering/operations' } = options; // Create ION Document. @@ -460,7 +460,7 @@ export class DidIonMethod implements DidMethod { }; } - const { resolutionEndpoint = 'https://discover.did.msidentity.com/1.0/identifiers/' } = resolutionOptions; + const { resolutionEndpoint = 'https://ion.tbd.engineering/identifiers/' } = resolutionOptions; const normalizeUrl = (url: string): string => url.endsWith('/') ? url : url + '/'; const resolutionUrl = `${normalizeUrl(resolutionEndpoint)}${parsedDid.did}`; diff --git a/packages/dids/tests/did-ion.spec.ts b/packages/dids/tests/did-ion.spec.ts index 0f3bcbe14..17b45de12 100644 --- a/packages/dids/tests/did-ion.spec.ts +++ b/packages/dids/tests/did-ion.spec.ts @@ -682,7 +682,7 @@ describe('DidIonMethod', () => { expect(resolutionResult.didDocumentMetadata.method).to.have.property('published', true); }); - it('returns notFound error with unpublished short form ION DIDs', async() => { + it('returns internalError error with unpublished short form ION DIDs', async() => { const did = 'did:ion:EiBCi7lnGtotBsFkbI_lQskQZLk_GPelU0C5-nRB4_nMfA'; const resolutionResult = await DidIonMethod.resolve({ didUrl: did }); @@ -690,7 +690,7 @@ describe('DidIonMethod', () => { expect(resolutionResult).to.have.property('didDocument'); expect(resolutionResult).to.have.property('didDocumentMetadata'); - expect(resolutionResult.didResolutionMetadata).to.have.property('error', 'notFound'); + expect(resolutionResult.didResolutionMetadata).to.have.property('error', 'internalError'); }); it('resolves published long form ION DIDs', async() => {