You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-LogMessage-API 'Update Tokens'-message 'Error updating refresh token, see Log Data for details. Will try again in 7 days.'-sev 'CRITICAL'-LogData (Get-CippException-Exception $_)
41
43
}
42
44
45
+
# Check application secret expiration for $env:ApplicationId and generate a new application secret if expiration is within 30 days.
Write-Information"Removed expired application secret with keyId $($Secret.keyId)."
78
+
} catch {
79
+
Write-LogMessage-API 'Update Tokens'-message "Error removing expired application secret with keyId $($Secret.keyId), see Log Data for details."-sev 'CRITICAL'-LogData (Get-CippException-Exception $_)
80
+
}
81
+
}
82
+
} else {
83
+
Write-Information"No expired application secrets found for $AppId."
Write-Information'No direct tenants found for refresh token update.'
47
95
} else {
48
-
Write-Information"Found $($TenantList.Count) direct tenants for refresh token update."
96
+
Write-Information"Found $($TenantList.Count) direct tenant(s) for refresh token update."
49
97
foreach ($Tenantin$TenantList) {
50
98
try {
51
99
Write-Information"Updating refresh token for tenant $($Tenant.displayName) - $($Tenant.customerId)"
@@ -62,13 +110,6 @@ function Start-UpdateTokensTimer {
62
110
Write-LogMessage-API 'Update Tokens'-tenant $Tenant.defaultDomainName-tenantid $Tenant.customerId-message "Could not update refresh token for tenant $($Tenant.displayName). Will try again in 7 days."-sev 'CRITICAL'
0 commit comments