Skip to content

Commit

Permalink
Do not set ProviderSignOutUri in SP2013
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Dec 3, 2020
1 parent afe7868 commit 1ca07fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- SPTrustedIdentityTokenIssuer
- Do not set property ProviderSignOutUri in SharePoint 2013 as it does
not exist

### Fixed

- SPWebAppPolicy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,12 @@ function Set-TargetResource

if ($params.ProviderSignOutUri)
{
$trust.ProviderSignOutUri = New-Object -TypeName System.Uri ($params.ProviderSignOutUri)
$installedVersion = Get-SPDscInstalledProductVersion
# This property does not exist in SharePoint 2013
if ($installedVersion.FileMajorPart -ne 15)
{
$trust.ProviderSignOutUri = New-Object -TypeName System.Uri ($params.ProviderSignOutUri)
}
}
$trust.Update()
}
Expand Down

0 comments on commit 1ca07fb

Please sign in to comment.