Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
stas committed Sep 15, 2021
1 parent 3ab0064 commit 297cd75
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/deployment/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ def try_sp_create() -> None:
app.identifier_uris.append(api_url)

client.applications.patch(
app.object_id, ApplicationUpdateParameters(identifier_uris=app.identifier_uris)
app.object_id,
ApplicationUpdateParameters(identifier_uris=app.identifier_uris),
)
set_app_audience(app.object_id, "AzureADMultipleOrgs")
elif (
Expand All @@ -410,7 +411,8 @@ def try_sp_create() -> None:
app.identifier_uris.append(api_url)

client.applications.patch(
app.object_id, ApplicationUpdateParameters(identifier_uris=app.identifier_uris)
app.object_id,
ApplicationUpdateParameters(identifier_uris=app.identifier_uris),
)
else:
logger.debug("No change to App Registration signInAudence setting")
Expand Down Expand Up @@ -484,13 +486,21 @@ def deploy_template(self) -> None:
# clear the value in the Issuer Url field:
# https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi-multitenant
app_func_audiences = [
"api://%s/%s" % ( self.multi_tenant_domain, self.application_name,),
"https://%s/%s" % ( self.multi_tenant_domain, self.application_name,),
"api://%s/%s"
% (
self.multi_tenant_domain,
self.application_name,
),
"https://%s/%s"
% (
self.multi_tenant_domain,
self.application_name,
),
]
app_func_issuer = ""
multi_tenant_domain = {"value": self.multi_tenant_domain}
else:
app_func_audience = [
app_func_audiences = [
"api://%s.azurewebsites.net" % self.application_name,
"https://%s.azurewebsites.net" % self.application_name,
]
Expand Down

0 comments on commit 297cd75

Please sign in to comment.