mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-05 04:13:11 +02:00
change Policy.Matches to accept a URL pointer (#5360)
This commit is contained in:
parent
9cd5fe4e25
commit
177f789e63
5 changed files with 9 additions and 9 deletions
|
@ -83,7 +83,7 @@ func TestSignInURL(t *testing.T) {
|
|||
authenticateURL := MustParseAndValidateURL("https://authenticate.example.com")
|
||||
redirectURL := MustParseAndValidateURL("https://redirect.example.com")
|
||||
|
||||
rawSignInURL, err := SignInURL(k1, k2.PublicKey(), &authenticateURL, &redirectURL, "IDP-1")
|
||||
rawSignInURL, err := SignInURL(k1, k2.PublicKey(), authenticateURL, redirectURL, "IDP-1")
|
||||
require.NoError(t, err)
|
||||
|
||||
signInURL, err := ParseAndValidateURL(rawSignInURL)
|
||||
|
@ -107,7 +107,7 @@ func TestSignOutURL(t *testing.T) {
|
|||
}).Encode(), nil)
|
||||
authenticateURL := MustParseAndValidateURL("https://authenticate.example.com")
|
||||
|
||||
rawSignOutURL := SignOutURL(r, &authenticateURL, []byte("TEST"))
|
||||
rawSignOutURL := SignOutURL(r, authenticateURL, []byte("TEST"))
|
||||
signOutURL, err := ParseAndValidateURL(rawSignOutURL)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue