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
fix(auth): skip placeholder SAM credentials on fresh deploy
Fresh deployments carry template placeholder values (e.g. LongApplicationId, AppSecret) until the setup wizard completes. Previously these were treated as valid credentials, causing EasyAuth issuer reconciliation to rewrite a correctly configured issuer and break sign-in. Now placeholder values are detected and the instance is treated as unconfigured.
Synced from CyberDrain/CIPP@77776c5
if ($Auth-and$env:ApplicationID-and$env:TenantID-and-not$HasPlaceholders) {
37
43
$AuthState.HasSAMCredentials=$true
38
44
$AuthState.NeedsSetup=$false
39
45
$AuthState.IsConfigured=$true
40
46
Write-Information"[Auth-Init] SAM credentials loaded (AppID: $($env:ApplicationID), TenantID: $($env:TenantID))"
47
+
} elseif ($HasPlaceholders) {
48
+
Write-Information'[Auth-Init] SAM secrets still hold deployment placeholder values — setup wizard has not been completed yet, treating as unconfigured'
41
49
} else {
42
50
Write-Information'[Auth-Init] SAM credential load returned but env vars not populated — credentials not available yet (expected on fresh deployment)'
0 commit comments