Skip to content

Commit

Permalink
Merge pull request #5830 from NikCharlebois/AADApplication
Browse files Browse the repository at this point in the history
AADApplication - Fix ReplyUrls Removal
  • Loading branch information
NikCharlebois authored Feb 21, 2025
2 parents ee80efe + e279755 commit bae86f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# UNRELEASED

* AADAppplication
* Fixed an issue where specifying an empty ReplyURLs array would not remove
the existing entries.
* EXOCalendarProcessing
* Changed the Get-TargetResource logic to return UPN instead of id.
* EXODistributionGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,19 +799,21 @@ function Set-TargetResource
$currentParameters.Add('Api', $apiValue)
}

if ($ReplyUrls -or $LogoutURL -or $Homepage)
if ($PSBoundParameters.ContainsKey('ReplyUrls') -or `
$PSBoundParameters.ContainsKey('LogoutURL') -or `
$PSBoundParameters.ContainsKey('Homepage'))
{
$webValue = @{}

if ($ReplyUrls)
if ($PSBoundParameters.ContainsKey('ReplyUrls'))
{
$webValue.Add('RedirectUris', $currentParameters.ReplyURLs)
}
if ($LogoutURL)
if ($PSBoundParameters.ContainsKey('LogoutURL'))
{
$webValue.Add('LogoutUrl', $currentParameters.LogoutURL)
}
if ($Homepage)
if ($PSBoundParameters.ContainsKey('Homepage'))
{
$webValue.Add('HomePageUrl', $currentParameters.Homepage)
}
Expand Down

0 comments on commit bae86f1

Please sign in to comment.