mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
core/authorize: require new login when authenticate url changes (#5165)
This commit is contained in:
parent
fd086bd06b
commit
e5e6558de6
9 changed files with 110 additions and 50 deletions
18
pkg/grpc/identity/identity_test.go
Normal file
18
pkg/grpc/identity/identity_test.go
Normal 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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue