Skip to content

Commit

Permalink
fix test, use configured hostname for JWT validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Jun 14, 2023
1 parent 3325f91 commit 07bd7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mfa_ziti_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ func Test_MFA(t *testing.T) {
mfaUrl, err := url.Parse(provisionString)
ctx.Req.NoError(err)
ctx.Req.Equal(mfaUrl.Host, "totp")
ctx.Req.Equal(mfaUrl.Path, "/ziti.dev:"+mfaStartedIdentityName)

ctx.Req.Equal(mfaUrl.Path, "/"+ctx.EdgeController.AppEnv.Config.Totp.Hostname+":"+mfaStartedIdentityName)
ctx.Req.Equal(mfaUrl.Scheme, "otpauth")
})
})
Expand Down

0 comments on commit 07bd7c2

Please sign in to comment.