@cognite/sdk-core
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.1.1](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-core@2.1.0...@cognite/sdk-core@2.1.1) (2021-04-13) | ||
**Note:** Version bump only for package @cognite/sdk-core | ||
# [2.1.0](https://github.com/cognitedata/cognite-sdk-js/compare/@cognite/sdk-core@2.0.0...@cognite/sdk-core@2.1.0) (2021-04-08) | ||
@@ -8,0 +16,0 @@ |
@@ -6,3 +6,3 @@ export interface ADFSConfig { | ||
export interface ADFSRequestParams { | ||
cluster: string; | ||
resource: string; | ||
clientId: string; | ||
@@ -9,0 +9,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
"types": "dist/src/index.d.js", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"scripts": { | ||
@@ -37,3 +37,3 @@ "clean": "rm -rf dist/ docs/", | ||
}, | ||
"gitHead": "3f270f405ebb2378dffe26833569a42d8e46f4d5" | ||
"gitHead": "f814de19044e57bf9564394945643b9c96b70034" | ||
} |
@@ -12,3 +12,3 @@ import nock from 'nock'; | ||
const requestParams = { | ||
cluster, | ||
resource: mockBaseUrl, | ||
clientId, | ||
@@ -15,0 +15,0 @@ }; |
@@ -762,3 +762,3 @@ // Copyright 2020 Cognite AS | ||
const requestParams = { | ||
cluster, | ||
resource: mockClusterUrl, | ||
clientId, | ||
@@ -765,0 +765,0 @@ }; |
@@ -14,3 +14,3 @@ // Copyright 2020 Cognite AS | ||
export interface ADFSRequestParams { | ||
cluster: string; | ||
resource: string; | ||
clientId: string; | ||
@@ -160,3 +160,3 @@ } | ||
private getADFSQueryParams({ | ||
cluster, | ||
resource, | ||
clientId, | ||
@@ -166,3 +166,2 @@ }: ADFSRequestParams): ADFSQueryParams { | ||
const responseType = 'id_token token'; | ||
const resource = `https://${cluster}.cognitedata.com`; | ||
const scope = `user_impersonation IDENTITY`; | ||
@@ -169,0 +168,0 @@ const redirectUri = window.location.href; |
@@ -605,3 +605,3 @@ // Copyright 2020 Cognite AS | ||
}: OAuthLoginForADFSOptions): Promise<OAuthLoginResult> => { | ||
const { cluster } = requestParams; | ||
const { resource } = requestParams; | ||
const adfsClient = new ADFS({ | ||
@@ -612,3 +612,3 @@ authority, | ||
this.httpClient.setCluster(cluster); | ||
this.httpClient.setBaseUrl(resource); | ||
@@ -615,0 +615,0 @@ let token = await this.handleADFSLoginRedirect(adfsClient); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
453768
9909