@microsoft/m365-spec-parser 0.2.2-alpha.bc7ab6285.0 → 0.2.2-beta.2024060608.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.node.cjs.js
CHANGED
|
@@ -1691,7 +1691,6 @@ class ManifestUpdater {
|
|
|
1691
1691
|
const auth = authInfo.authScheme;
|
|
1692
1692
|
const safeRegistrationIdName = Utils.getSafeRegistrationIdEnvName(`${authInfo.name}_${ConstantString.RegistrationIdPostfix[authInfo.authScheme.type]}`);
|
|
1693
1693
|
if (Utils.isAPIKeyAuth(auth) || Utils.isBearerTokenAuth(auth)) {
|
|
1694
|
-
const safeApiSecretRegistrationId = Utils.getSafeRegistrationIdEnvName(`${authInfo.name}_${ConstantString.RegistrationIdPostfix[authInfo.authScheme.type]}`);
|
|
1695
1694
|
composeExtension.authorization = {
|
|
1696
1695
|
authType: "apiSecretServiceAuth",
|
|
1697
1696
|
apiSecretServiceAuthConfiguration: {
|
|
@@ -1700,16 +1699,13 @@ class ManifestUpdater {
|
|
|
1700
1699
|
};
|
|
1701
1700
|
}
|
|
1702
1701
|
else if (Utils.isOAuthWithAuthCodeFlow(auth)) {
|
|
1702
|
+
// TODO: below schema is coming from design doc, may need to update when shcema is finalized
|
|
1703
1703
|
composeExtension.authorization = {
|
|
1704
1704
|
authType: "oAuth2.0",
|
|
1705
1705
|
oAuthConfiguration: {
|
|
1706
1706
|
oauthConfigurationId: `\${{${safeRegistrationIdName}}}`,
|
|
1707
1707
|
},
|
|
1708
1708
|
};
|
|
1709
|
-
updatedPart.webApplicationInfo = {
|
|
1710
|
-
id: "${{AAD_APP_CLIENT_ID}}",
|
|
1711
|
-
resource: "api://${{DOMAIN}}/${{AAD_APP_CLIENT_ID}}",
|
|
1712
|
-
};
|
|
1713
1709
|
}
|
|
1714
1710
|
}
|
|
1715
1711
|
updatedPart.composeExtensions = [composeExtension];
|