Skip to content

Commit

Permalink
Merge pull request #1270 from Yvand/Yvand/donotset-ProviderSignOutUri…
Browse files Browse the repository at this point in the history
…-sp2013

SPTrustedIdentityTokenIssuer: Do not set property ProviderSignOutUri in SP2013

[skip ci]
  • Loading branch information
ykuijs authored Dec 3, 2020
2 parents afe7868 + 1ca07fb commit 9f8135b
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 9f8135b

Please sign in to comment.