Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
b63969e9
Commit
b63969e9
authored
Nov 20, 2021
by
Dmitriy Rudko
💬
Browse files
fix: [Bug #12645959] Fix auth logic for Partition services communication to use MSI
parent
c4c7e96c
Pipeline
#78173
failed with stages
in 14 minutes and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/cloud/providers/azure/dataecosystem.ts
View file @
b63969e9
...
...
@@ -55,12 +55,12 @@ export class AzureDataEcosystemServices extends AbstractDataEcosystemCore {
}
public
static
async
getPartitionConfiguration
(
dataPartitionID
:
string
):
Promise
<
any
>
{
const
credentials
=
AzureCredentials
.
getCredential
()
const
access_token
=
credentials
.
getToken
(
AzureConfig
.
SP_APP_RESOURCE_ID
)
const
options
=
{
headers
:
{
'
Accept
'
:
'
application/json
'
,
'
Authorization
'
:
'
Bearer
'
+
(
await
AzureCredentials
.
getAzureServicePrincipalAccessToken
(
AzureConfig
.
SP_CLIENT_ID
,
AzureConfig
.
SP_CLIENT_SECRET
,
AzureConfig
.
SP_TENANT_ID
,
AzureConfig
.
SP_APP_RESOURCE_ID
)).
access_token
,
'
Authorization
'
:
`Bearer
${
access_token
}
`
,
'
Content-Type
'
:
'
application/json
'
},
url
:
AzureConfig
.
DES_SERVICE_HOST_PARTITION
+
'
/api/partition/v1/partitions/
'
+
dataPartitionID
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment