Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/src/app/bi-sdk-js
  • Loading branch information
bi-ci-bot committed Oct 3, 2023
1 parent c76cdc7 commit 8f5a1fe
Show file tree
Hide file tree
Showing 68 changed files with 5,967 additions and 712 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
dist
docs
node_modules
test/__pycache__
test-automation
test/BrowserStackLocal**
/sdk_test/.pytest_cache/
/sdk_test/env/
/sdk_test/tests/.pytest_cache/
/sdk_test/__pycache__/
/sdk_test/tests/__pycache__/
/webauthn_tests/target/
/webauthn_tests/src/main/resources/
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.5] - 2023-09-25

### Changed

- Do not propagate binding token if passkeys cannot be bound

### Fixed

- Missing exports for AuthenticationContext & AuthenticationMethod
- Resume auth url does not contain the port from the original request

## [2.0.4] - 2023-07-25

### Changed
Expand All @@ -14,9 +25,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- New function authenticateWithOtp to enable authentication with a one time password.
- New function redeemOtp to enable redeeming a one time password.
- New function getAuthenticationContext to retrieve authentication parameters for the ongoing transaction.
- New function authenticateOtp to enable authentication with a one time password.
- New function redeemOtp to enable redeeming a one time password.

## [2.0.3] - 2023-04-20

Expand Down
173 changes: 94 additions & 79 deletions coresdk/dist/bi-core.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions coresdk/dist/src/core/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ export declare class Core {
*/
authenticate: (url: string, credDesc: CredentialDescriptor) => Promise<BiAuthenticateResponse>;
/**
* Returns the type of a URL. The url may be a Credential Binding Link
* or an Authentication request.
* Returns the Authentication Context for the current transaction.
*
* The Authentication Context contains the Authenticator Config,
* Authentication Method Configuration, request origin, and the
* authenticating application.
*/
getAuthenticationContext: (url: string) => Promise<AuthenticationContext>;
/**
* TODO: doc
* Returns the type of a URL. The url may be a Credential Binding Link
* or an Authentication request.
*/
getUrlType: (url: string) => Types.UrlType;
/**
Expand Down
6 changes: 6 additions & 0 deletions coresdk/dist/src/messaging/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export interface Pkce {
export interface ClientEnvironment {
crypto_source: CryptoSource;
key_storage_strategy: KeyStorageStrategy;
gdc_url: string;
}
export interface CoreCredentialV1 {
id: string;
Expand Down Expand Up @@ -191,8 +192,13 @@ interface CoreAuthenticatorConfig {
realm_id: string;
config: CoreAuthenticatorProfileConfig;
}
/** Authenticator Profile configuration.
* Note that `hosted_login` is only provided for backwards compatibility,
* and has been renamed to `hosted_web`.
*/
declare type CoreAuthenticatorProfileConfig = {
type: "hosted_web";
authentication_methods: CoreAuthenticationMethod[];
} | {
type: "hosted_login";
authentication_methods: CoreAuthenticationMethod[];
Expand Down
1 change: 1 addition & 0 deletions coresdk/dist/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export declare type KeyStorageStrategy = "TeeIfAvailable" | "ForceSoftware";
export interface ClientEnvironment {
cryptoSource: CryptoSource;
keyStorageStrategy: KeyStorageStrategy;
gdcUrl: string;
}
/**
* Describes a Credential and method with which to authenticate.
Expand Down
10 changes: 5 additions & 5 deletions coresdk/lib/kmc/kmc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9ebfed479af5581e: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h912c53d1f6acdc2f: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4e06280f8a18b9d8: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb87b29f834ffcd67: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h53c7ae91175e11f6: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c87589d2dc319c7: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89892746f5eb5a17: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae4cae5d2a8ef7e8: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_exn_store: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h2867fcaadcf0d58d: (a: number, b: number, c: number, d: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h0927af1473172a6f: (a: number, b: number, c: number, d: number) => void;
}

export type SyncInitInput = BufferSource | WebAssembly.Module;
Expand Down
Loading

0 comments on commit 8f5a1fe

Please sign in to comment.