@@ -578,7 +578,8 @@ func TestLoad(t *testing.T) {
578578 },
579579 },
580580 },
581- }}
581+ },
582+ }
582583 return cfg
583584 },
584585 },
@@ -695,7 +696,8 @@ func TestLoad(t *testing.T) {
695696 TokenLifetime : 24 * time .Hour ,
696697 StateLifetime : 10 * time .Minute ,
697698 CSRF : AuthenticationSessionCSRF {
698- Key : "abcdefghijklmnopqrstuvwxyz1234567890" , //gitleaks:allow
699+ Key : "abcdefghijklmnopqrstuvwxyz1234567890" , //gitleaks:allow
700+ Secure : true ,
699701 },
700702 },
701703 Methods : AuthenticationMethods {
@@ -869,7 +871,8 @@ func TestLoad(t *testing.T) {
869871 TokenLifetime : 24 * time .Hour ,
870872 StateLifetime : 10 * time .Minute ,
871873 CSRF : AuthenticationSessionCSRF {
872- Key : "abcdefghijklmnopqrstuvwxyz1234567890" , //gitleaks:allow
874+ Key : "abcdefghijklmnopqrstuvwxyz1234567890" , //gitleaks:allow
875+ Secure : true ,
873876 },
874877 },
875878 Methods : AuthenticationMethods {
@@ -1789,13 +1792,11 @@ func TestGetConfigFile(t *testing.T) {
17891792 }
17901793}
17911794
1792- var (
1793- // add any struct tags to match their camelCase equivalents here.
1794- camelCaseMatchers = map [string ]string {
1795- "requireTLS" : "requireTLS" ,
1796- "discoveryURL" : "discoveryURL" ,
1797- }
1798- )
1795+ // add any struct tags to match their camelCase equivalents here.
1796+ var camelCaseMatchers = map [string ]string {
1797+ "requireTLS" : "requireTLS" ,
1798+ "discoveryURL" : "discoveryURL" ,
1799+ }
17991800
18001801func TestStructTags (t * testing.T ) {
18011802 configType := reflect .TypeOf (Config {})
0 commit comments