core/authorize: require new login when authenticate url changes (#5165)

This commit is contained in:
Caleb Doxsey 2024-07-12 10:57:41 -06:00 committed by GitHub
parent fd086bd06b
commit e5e6558de6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 110 additions and 50 deletions

View file

@ -0,0 +1,18 @@
package identity_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/pomerium/pomerium/pkg/grpc/identity"
)
func TestHash(t *testing.T) {
t.Parallel()
p1 := &identity.Provider{Id: "id1"}
p2 := &identity.Provider{Id: "id2"}
assert.Equal(t, p1.Hash(), p2.Hash(), "should ignore ids for hash")
}