fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima
This commit is contained in:
parent
f81bbc6207
commit
2c42fa5ace
2 changed files with 9 additions and 9 deletions
|
@ -601,7 +601,7 @@ export class GBVMService extends GBService {
|
||||||
const waitAndRefreshToken = async (token) => {
|
const waitAndRefreshToken = async (token) => {
|
||||||
await timeout(interval);
|
await timeout(interval);
|
||||||
global[i] = await sys.getCustomToken({pid, token});
|
global[i] = await sys.getCustomToken({pid, token});
|
||||||
|
console.log('Token refreshed: '+ i + global[i]);
|
||||||
if (!tokenStops[token]) {
|
if (!tokenStops[token]) {
|
||||||
await waitAndRefreshToken(token);
|
await waitAndRefreshToken(token);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1594,18 +1594,18 @@ export class SystemKeywords {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async getCustomToken({pid, tokenName}) :Promise<string>{
|
public async getCustomToken({pid, token}) :Promise<string>{
|
||||||
|
|
||||||
const { min, user, params, proc } = await DialogKeywords.getProcessInfo(pid);
|
const { min } = await DialogKeywords.getProcessInfo(pid);
|
||||||
GBLogEx.info(min, `GET TOKEN: ${tokenName}`);
|
GBLogEx.info(min, `GET TOKEN: ${token}`);
|
||||||
|
|
||||||
return await (min.adminService as any)['acquireElevatedToken']
|
return await (min.adminService as any)['acquireElevatedToken']
|
||||||
(min.instance.instanceId, false,
|
(min.instance.instanceId, false,
|
||||||
tokenName,
|
token,
|
||||||
min.core.getParam(min.instance, `${tokenName} Client ID`, null),
|
min.core.getParam(min.instance, `${token} Client ID`, null),
|
||||||
min.core.getParam(min.instance, `${tokenName} Client Secret`, null),
|
min.core.getParam(min.instance, `${token} Client Secret`, null),
|
||||||
min.core.getParam(min.instance, `${tokenName} Host`, null),
|
min.core.getParam(min.instance, `${token} Host`, null),
|
||||||
min.core.getParam(min.instance, `${tokenName} Tenant`, null)
|
min.core.getParam(min.instance, `${token} Tenant`, null)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue