Skip to content

Commit

Permalink
fixed authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 29, 2023
1 parent ac1fe17 commit fb72950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ function Get-CIPPAuthentication {
$ENV:tenantid = (Get-AzKeyVaultSecret -VaultName $ENV:WEBSITE_DEPLOYMENT_ID -Name "TenantId" -AsPlainText)
$ENV:refreshtoken = (Get-AzKeyVaultSecret -VaultName $ENV:WEBSITE_DEPLOYMENT_ID -Name "RefreshToken" -AsPlainText)
$ENV:SetFromProfile = $true
Write-LogMessage -message "Reloaded authentication data from KeyVault" -Sev 'info'
Write-LogMessage -message "Reloaded authentication data from KeyVault" -Sev 'info' -API "CIPP Authentication"

return $true
}
catch {
Write-LogMessage -message "Could not retrieve keys from Keyvault: $($_.Exception.Message)" -Sev 'CRITICAL'
Write-LogMessage -message "Could not retrieve keys from Keyvault: $($_.Exception.Message)" -Sev 'CRITICAL' -API "CIPP Authentication"
return $false
}
}
Expand Down

0 comments on commit fb72950

Please sign in to comment.