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
29328ea3
Commit
29328ea3
authored
Dec 01, 2021
by
Diego Molteni
Browse files
fix: updated audiences on refresh
parent
f3773fa7
Pipeline
#79655
failed with stages
in 19 minutes
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
app/sdms/src/services/impersonation_token/handler.ts
View file @
29328ea3
...
@@ -185,10 +185,13 @@ export class ImpersonationTokenHandler {
...
@@ -185,10 +185,13 @@ export class ImpersonationTokenHandler {
}
}
// generate the impersonation token credential token (the auth credential)
// generate the impersonation token credential token (the auth credential)
const
impersonationToken
=
AuthProviderFactory
.
build
(
const
authProvider
=
AuthProviderFactory
.
build
(
Config
.
SERVICE_AUTH_PROVIDER
);
Config
.
SERVICE_AUTH_PROVIDER
).
convertToImpersonationTokenModel
(
const
scopes
=
[
authProvider
.
getClientID
()];
await
AuthProviderFactory
.
build
(
if
(
Config
.
DES_TARGET_AUDIENCE
)
{
Config
.
SERVICE_AUTH_PROVIDER
).
generateAuthCredential
());
scopes
.
push
(
Config
.
DES_TARGET_AUDIENCE
);
}
const
impersonationToken
=
authProvider
.
convertToImpersonationTokenModel
(
await
authProvider
.
generateScopedAuthCredential
(
scopes
));
impersonationToken
.
context
=
requestParams
.
tokenContext
;
impersonationToken
.
context
=
requestParams
.
tokenContext
;
...
...
Write
Preview
Supports
Markdown
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