mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-17 20:17:03 +02:00
revert: secrets as []byte instead of string
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -188,7 +188,7 @@ var _ = Describe("Headers Suite", func() {
|
||||
ClaimSource: &options.ClaimSource{
|
||||
Claim: "user",
|
||||
BasicAuthPassword: &options.SecretSource{
|
||||
Value: base64.StdEncoding.EncodeToString([]byte("basic-password")),
|
||||
Value: []byte(base64.StdEncoding.EncodeToString([]byte("basic-password"))),
|
||||
FromEnv: "SECRET_ENV",
|
||||
},
|
||||
},
|
||||
@@ -304,7 +304,7 @@ var _ = Describe("Headers Suite", func() {
|
||||
Values: []options.HeaderValue{
|
||||
{
|
||||
SecretSource: &options.SecretSource{
|
||||
Value: "_oauth2_proxy=ey123123123",
|
||||
Value: []byte("_oauth2_proxy=ey123123123"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -314,7 +314,7 @@ var _ = Describe("Headers Suite", func() {
|
||||
Values: []options.HeaderValue{
|
||||
{
|
||||
SecretSource: &options.SecretSource{
|
||||
Value: "oauth_user",
|
||||
Value: []byte("oauth_user"),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -460,7 +460,7 @@ var _ = Describe("Headers Suite", func() {
|
||||
ClaimSource: &options.ClaimSource{
|
||||
Claim: "user",
|
||||
BasicAuthPassword: &options.SecretSource{
|
||||
Value: base64.StdEncoding.EncodeToString([]byte("basic-password")),
|
||||
Value: []byte(base64.StdEncoding.EncodeToString([]byte("basic-password"))),
|
||||
FromEnv: "SECRET_ENV",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user