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

Commit

Permalink
Merge branch 'main' into dependabot/cargo/src/agent/quick-xml-0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Jul 25, 2023
2 parents 9a6b74e + 226d0f2 commit eb6c230
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/deployment/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,13 @@ def create_new_app_registration(
) -> Dict[str, Any]:
logger.info("creating Application registration")

appRegRedirectUris = [f"{self.get_instance_url()}/.auth/login/aad/callback"]

if self.custom_domain:
appRegRedirectUris.append(
f"https://{self.custom_domain}/.auth/login/aad/callback"
)

params = {
"displayName": self.application_name,
"identifierUris": [self.get_identifier_url()],
Expand All @@ -560,7 +567,7 @@ def create_new_app_registration(
"enableAccessTokenIssuance": False,
"enableIdTokenIssuance": True,
},
"redirectUris": [f"{self.get_instance_url()}/.auth/login/aad/callback"],
"redirectUris": appRegRedirectUris,
},
"requiredResourceAccess": [
{
Expand Down

0 comments on commit eb6c230

Please sign in to comment.