From 99bfef338ca068be1f734bc6ca784e12c8df7d7a Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 26 May 2020 11:23:30 -0700 Subject: Rename WebAuthntine to SimpleWebAuthn --- packages/browser/src/helpers/toPublicKeyCredentialDescriptor.ts | 2 +- packages/browser/src/methods/startAssertion.ts | 4 ++-- packages/browser/src/methods/startAttestation.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/helpers/toPublicKeyCredentialDescriptor.ts b/packages/browser/src/helpers/toPublicKeyCredentialDescriptor.ts index ad166a5..c37fed0 100644 --- a/packages/browser/src/helpers/toPublicKeyCredentialDescriptor.ts +++ b/packages/browser/src/helpers/toPublicKeyCredentialDescriptor.ts @@ -1,5 +1,5 @@ import base64js from 'base64-js'; -import type { PublicKeyCredentialDescriptorJSON } from '@webauthntine/typescript-types'; +import type { PublicKeyCredentialDescriptorJSON } from '@simplewebauthn/typescript-types'; export default function toPublicKeyCredentialDescriptor( descriptor: PublicKeyCredentialDescriptorJSON, diff --git a/packages/browser/src/methods/startAssertion.ts b/packages/browser/src/methods/startAssertion.ts index 826763a..0648e56 100644 --- a/packages/browser/src/methods/startAssertion.ts +++ b/packages/browser/src/methods/startAssertion.ts @@ -2,7 +2,7 @@ import { PublicKeyCredentialRequestOptionsJSON, AuthenticatorAssertionResponseJSON, AssertionCredential, -} from '@webauthntine/typescript-types'; +} from '@simplewebauthn/typescript-types'; import toUint8Array from '../helpers/toUint8Array'; import toBase64String from '../helpers/toBase64String'; @@ -12,7 +12,7 @@ import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDes /** * Begin authenticator "login" via WebAuthn assertion * - * @param requestOptionsJSON Output from @webauthntine/server's generateAssertionOptions(...) + * @param requestOptionsJSON Output from @simplewebauthn/server's generateAssertionOptions(...) */ export default async function startAssertion( requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON, diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index 14ffc53..f77c2de 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -2,7 +2,7 @@ import { PublicKeyCredentialCreationOptionsJSON, AuthenticatorAttestationResponseJSON, AttestationCredential, -} from '@webauthntine/typescript-types'; +} from '@simplewebauthn/typescript-types'; import toUint8Array from '../helpers/toUint8Array'; import toBase64String from '../helpers/toBase64String'; @@ -12,7 +12,7 @@ import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDes /** * Begin authenticator "registration" via WebAuthn attestation * - * @param creationOptionsJSON Output from @webauthntine/server's generateAttestationOptions(...) + * @param creationOptionsJSON Output from @simplewebauthn/server's generateAttestationOptions(...) */ export default async function startAttestation( creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON, -- cgit v1.2.3 From 806fd91211f4bef58fe015d11cd792bede2d2561 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 26 May 2020 15:03:21 -0700 Subject: Replace last vestiges of “webauthntine” MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/browser/src/methods/startAssertion.test.ts | 2 +- packages/browser/src/methods/startAttestation.test.ts | 4 ++-- .../server/src/attestation/generateAttestationOptions.test.ts | 8 ++++---- packages/server/src/helpers/convertCOSEtoPKCS.test.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/methods/startAssertion.test.ts b/packages/browser/src/methods/startAssertion.test.ts index 2287b49..7449dbf 100644 --- a/packages/browser/src/methods/startAssertion.test.ts +++ b/packages/browser/src/methods/startAssertion.test.ts @@ -3,7 +3,7 @@ import base64js from 'base64-js'; import { AssertionCredential, PublicKeyCredentialRequestOptionsJSON, -} from '@webauthntine/typescript-types'; +} from '@simplewebauthn/typescript-types'; import toUint8Array from '../helpers/toUint8Array'; import supportsWebauthn from '../helpers/supportsWebauthn'; diff --git a/packages/browser/src/methods/startAttestation.test.ts b/packages/browser/src/methods/startAttestation.test.ts index faeca8b..a972014 100644 --- a/packages/browser/src/methods/startAttestation.test.ts +++ b/packages/browser/src/methods/startAttestation.test.ts @@ -3,7 +3,7 @@ import base64js from 'base64-js'; import { AttestationCredential, PublicKeyCredentialCreationOptionsJSON, -} from '@webauthntine/typescript-types'; +} from '@simplewebauthn/typescript-types'; import toUint8Array from '../helpers/toUint8Array'; import supportsWebauthn from '../helpers/supportsWebauthn'; @@ -30,7 +30,7 @@ const goodOpts1: PublicKeyCredentialCreationOptionsJSON = { ], rp: { id: '1234', - name: 'webauthntine', + name: 'simplewebauthn', }, user: { id: '5678', diff --git a/packages/server/src/attestation/generateAttestationOptions.test.ts b/packages/server/src/attestation/generateAttestationOptions.test.ts index dc67cf5..3885dfc 100644 --- a/packages/server/src/attestation/generateAttestationOptions.test.ts +++ b/packages/server/src/attestation/generateAttestationOptions.test.ts @@ -1,7 +1,7 @@ import generateAttestationOptions from './generateAttestationOptions'; test('should generate credential request options suitable for sending via JSON', () => { - const serviceName = 'WebAuthntine'; + const serviceName = 'SimpleWebAuthn'; const rpID = 'not.real'; const challenge = 'totallyrandomvalue'; const userID = '1234'; @@ -46,7 +46,7 @@ test('should generate credential request options suitable for sending via JSON', test('should map excluded credential IDs if specified', () => { const options = generateAttestationOptions( - 'WebAuthntine', + 'SimpleWebAuthn', 'not.real', 'totallyrandomvalue', '1234', @@ -65,7 +65,7 @@ test('should map excluded credential IDs if specified', () => { test('defaults to 60 seconds if no timeout is specified', () => { const options = generateAttestationOptions( - 'WebAuthntine', + 'SimpleWebAuthn', 'not.real', 'totallyrandomvalue', '1234', @@ -77,7 +77,7 @@ test('defaults to 60 seconds if no timeout is specified', () => { test('defaults to direct attestation if no attestation type is specified', () => { const options = generateAttestationOptions( - 'WebAuthntine', + 'SimpleWebAuthn', 'not.real', 'totallyrandomvalue', '1234', diff --git a/packages/server/src/helpers/convertCOSEtoPKCS.test.ts b/packages/server/src/helpers/convertCOSEtoPKCS.test.ts index 5bc970c..d17d4bd 100644 --- a/packages/server/src/helpers/convertCOSEtoPKCS.test.ts +++ b/packages/server/src/helpers/convertCOSEtoPKCS.test.ts @@ -1,5 +1,5 @@ import cbor from 'cbor'; -import { COSEKEYS } from '@webauthntine/typescript-types'; +import { COSEKEYS } from '@simplewebauthn/typescript-types'; import convertCOSEtoPKCS from './convertCOSEtoPKCS'; -- cgit v1.2.3