@@ -27,6 +27,7 @@ const (
27
27
authUnlockAccountLinkSigningKey = "authUnlockAccountLinkSigningKey"
28
28
dotcomSrcCliVersionCacheGitHubToken = "dotcomSrcCliVersionCacheGitHubToken"
29
29
dotcomSrcCliVersionCacheGitHubWebhookSecret = "dotcomSrcCliVersionCacheGitHubWebhookSecret"
30
+ dotcomSAMSClientSecret = "dotcomSAMSClientSecret"
30
31
)
31
32
32
33
func TestValidate (t * testing.T ) {
@@ -230,6 +231,7 @@ func TestRedactSecrets(t *testing.T) {
230
231
dotcomGitHubAppCloudPrivateKey : dotcomGitHubAppCloudPrivateKey ,
231
232
dotcomSrcCliVersionCacheGitHubToken : dotcomSrcCliVersionCacheGitHubToken ,
232
233
dotcomSrcCliVersionCacheGitHubWebhookSecret : dotcomSrcCliVersionCacheGitHubWebhookSecret ,
234
+ dotcomSAMSClientSecret : dotcomSAMSClientSecret ,
233
235
authUnlockAccountLinkSigningKey : authUnlockAccountLinkSigningKey ,
234
236
},
235
237
),
@@ -490,6 +492,7 @@ func getTestSiteWithRedactedSecrets() string {
490
492
dotcomGitHubAppCloudPrivateKey : redactedSecret ,
491
493
dotcomSrcCliVersionCacheGitHubToken : redactedSecret ,
492
494
dotcomSrcCliVersionCacheGitHubWebhookSecret : redactedSecret ,
495
+ dotcomSAMSClientSecret : redactedSecret ,
493
496
authUnlockAccountLinkSigningKey : redactedSecret ,
494
497
},
495
498
)
@@ -508,6 +511,7 @@ type testSecrets struct {
508
511
dotcomGitHubAppCloudPrivateKey string
509
512
dotcomSrcCliVersionCacheGitHubToken string
510
513
dotcomSrcCliVersionCacheGitHubWebhookSecret string
514
+ dotcomSAMSClientSecret string
511
515
authUnlockAccountLinkSigningKey string
512
516
}
513
517
@@ -577,7 +581,8 @@ func getTestSiteWithSecrets(testSecrets testSecrets, optionalEdit ...string) str
577
581
"token": "%s",
578
582
"webhookSecret": "%s"
579
583
}
580
- }
584
+ },
585
+ "sams.clientSecret": "%s"
581
586
},
582
587
"auth.unlockAccountLinkSigningKey": "%s",
583
588
}` ,
@@ -595,6 +600,7 @@ func getTestSiteWithSecrets(testSecrets testSecrets, optionalEdit ...string) str
595
600
testSecrets .dotcomGitHubAppCloudPrivateKey ,
596
601
testSecrets .dotcomSrcCliVersionCacheGitHubToken ,
597
602
testSecrets .dotcomSrcCliVersionCacheGitHubWebhookSecret ,
603
+ testSecrets .dotcomSAMSClientSecret ,
598
604
testSecrets .authUnlockAccountLinkSigningKey ,
599
605
)
600
606
}
0 commit comments