mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Update redirect URI if deployment uses a custom domain (#3341)
This commit is contained in:
@ -536,6 +536,13 @@ class Client:
|
||||
) -> 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()],
|
||||
@ -560,7 +567,7 @@ class Client:
|
||||
"enableAccessTokenIssuance": False,
|
||||
"enableIdTokenIssuance": True,
|
||||
},
|
||||
"redirectUris": [f"{self.get_instance_url()}/.auth/login/aad/callback"],
|
||||
"redirectUris": appRegRedirectUris,
|
||||
},
|
||||
"requiredResourceAccess": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user