Commit b1d14ceb authored by Dmitriy Rudko's avatar Dmitriy Rudko 💬
Browse files

fix: [Bug #12645959] fix issue of wron TokenCredentials object usage

parent ba4fad16
Pipeline #78179 failed with stages
in 15 minutes and 52 seconds
...@@ -56,7 +56,8 @@ export class AzureDataEcosystemServices extends AbstractDataEcosystemCore { ...@@ -56,7 +56,8 @@ export class AzureDataEcosystemServices extends AbstractDataEcosystemCore {
public static async getPartitionConfiguration(dataPartitionID: string): Promise<any> { public static async getPartitionConfiguration(dataPartitionID: string): Promise<any> {
const credentials = AzureCredentials.getCredential() const credentials = AzureCredentials.getCredential()
const accessToken = credentials.getToken(AzureConfig.SP_APP_RESOURCE_ID) const aud = AzureConfig.SP_APP_RESOURCE_ID;
const accessToken = (await credentials.getToken(`${aud}/.default`)).token
const options = { const options = {
headers: { headers: {
'Accept': 'application/json', 'Accept': 'application/json',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment