Skip to content

Commit af110ce

Browse files
committed
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into dev
2 parents 816323b + a963bf1 commit af110ce

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-CIPPDBCacheData.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function Push-CIPPDBCacheData {
116116
if ($ConditionalAccessCapable) {
117117
$ConditionalAccessCacheFunctions = @(
118118
'ConditionalAccessPolicies'
119-
'AuthenticationFlowsPolicy'
119+
#'AuthenticationFlowsPolicy'
120120
'CredentialUserRegistrationDetails'
121121
'UserRegistrationDetails'
122122
)

Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function New-GraphPOSTRequest {
2727
$Headers = $Headers
2828
} else {
2929
$Headers = Get-GraphToken -tenantid $tenantid -scope $scope -AsApp $asapp -SkipCache $skipTokenCache
30+
$body = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $body -EscapeForJson
3031
}
3132
if ($AddedHeaders) {
3233
foreach ($header in $AddedHeaders.GetEnumerator()) {
@@ -41,8 +42,6 @@ function New-GraphPOSTRequest {
4142
if (!$contentType) {
4243
$contentType = 'application/json; charset=utf-8'
4344
}
44-
#Only do text replacement if no headers are set.
45-
if (!$headers) { $body = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $body -EscapeForJson }
4645

4746
$RetryCount = 0
4847
$RequestSuccessful = $false

0 commit comments

Comments
 (0)