Skip to content

Commit 6c14b68

Browse files
committed
test: fix oidc test regression
1 parent 28ccc01 commit 6c14b68

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

selfservice/strategy/oidc/strategy_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ func TestStrategy(t *testing.T) {
7474
oidc.Configuration{
7575
Provider: "generic",
7676
ID: "invalid-issuer",
77-
ClientID: "client",
77+
ClientID: "client-invalid",
7878
ClientSecret: "secret",
79-
IssuerURL: strings.Replace(remotePublic, "127.0.0.1", "localhost", 1) + "/",
80-
Mapper: "file://./stub/oidc.hydra.jsonnet",
79+
// We replace this URL to cause an issuer validation mismatch.
80+
IssuerURL: strings.Replace(remotePublic, "localhost", "127.0.0.1", 1) + "/",
81+
Mapper: "file://./stub/oidc.hydra.jsonnet",
8182
},
8283
)
8384

0 commit comments

Comments
 (0)