From b4116f79d3328ba4b0fb18e0b52d910362ab48a2 Mon Sep 17 00:00:00 2001 From: Oskar Damkjaer Date: Mon, 6 Nov 2023 11:44:25 +0100 Subject: [PATCH] meln --- package.json | 2 +- src/browser/modules/Stream/Auth/ConnectForm.tsx | 1 - src/shared/modules/connections/connectionsDuck.ts | 1 + src/shared/modules/discovery/discoveryHelpers.ts | 3 +-- yarn.lock | 8 ++++---- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index f1547760a99..502a5309848 100644 --- a/package.json +++ b/package.json @@ -207,7 +207,7 @@ "luxon": "2.5.2", "memoize-one": "^5.2.1", "monaco-editor": "0.23.0", - "neo4j-client-sso": "1.2.2", + "neo4j-client-sso": "1.2.3", "neo4j-driver": "5.9.2", "re-resizable": "^6.9.9", "react": "^17.0.2", diff --git a/src/browser/modules/Stream/Auth/ConnectForm.tsx b/src/browser/modules/Stream/Auth/ConnectForm.tsx index cdba3e796d3..aa0554244d9 100644 --- a/src/browser/modules/Stream/Auth/ConnectForm.tsx +++ b/src/browser/modules/Stream/Auth/ConnectForm.tsx @@ -373,7 +373,6 @@ export default function ConnectForm(props: ConnectFormProps): JSX.Element { {props.authenticationMethod === SSO && !SSOLoading && SSOProviders.filter(provider => { - // @ts-ignore types outdated return 'visible' in provider ? provider.visible : true }).map((provider: SSOProvider) => ( diff --git a/src/shared/modules/connections/connectionsDuck.ts b/src/shared/modules/connections/connectionsDuck.ts index be1e8bcc228..0a8690a4ef5 100644 --- a/src/shared/modules/connections/connectionsDuck.ts +++ b/src/shared/modules/connections/connectionsDuck.ts @@ -477,6 +477,7 @@ export type SSOProvider = { } auth_endpoint: string well_known_discovery_uri: string + visible: boolean } export type DiscoverDataAction = { diff --git a/src/shared/modules/discovery/discoveryHelpers.ts b/src/shared/modules/discovery/discoveryHelpers.ts index 184c8a06eba..6f5e3c82845 100644 --- a/src/shared/modules/discovery/discoveryHelpers.ts +++ b/src/shared/modules/discovery/discoveryHelpers.ts @@ -21,7 +21,6 @@ import { pick } from 'lodash' import { DiscoveryResult, FetchError, - NoProviderError, authLog, fetchDiscoveryDataFromUrl } from 'neo4j-client-sso' @@ -93,7 +92,7 @@ type TaggedDiscoveryData = DiscoverableData & { source: DiscoveryDataSource urlMissing: boolean host: string - onlyCheckForHost?: boolean + onlyCheckForHost: boolean } type DiscoveryDataSource = diff --git a/yarn.lock b/yarn.lock index dfae151246b..84de86b94c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10500,10 +10500,10 @@ neo-async@^2.5.0, neo-async@^2.6.1: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha1-tKr7k+OustgXTKU88WOrfXMIMF8= -neo4j-client-sso@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/neo4j-client-sso/-/neo4j-client-sso-1.2.2.tgz#146f96ca8e23654c70e5bd5a7f98a3acb286ce2c" - integrity sha1-FG+Wyo4jZUxw5b1af5ijrLKGziw= +neo4j-client-sso@1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/neo4j-client-sso/-/neo4j-client-sso-1.2.3.tgz#e53da35442c57b76fa1d7a53bbbc9501f7b4de17" + integrity sha512-F/bZ8VfuNPNL68M6DiD3V4S6/ihdnAD8iEeR2rxqaZPPbch7KRO0PPGQqgkO7H+SaO1ayz9Q9ZYLifzxohossg== dependencies: file-saver "^2.0.5" jwt-decode "^3.1.2"