mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
databroker: support rotating shared secret (#3502)
* databroker: support rotating shared secret * fix test * run tests on linux * fix tests * fix typo * increase timeout
This commit is contained in:
parent
f0745f0626
commit
0b48da1e2f
13 changed files with 118 additions and 69 deletions
|
@ -74,8 +74,8 @@ func TestSignedJWT(t *testing.T) {
|
|||
})
|
||||
t.Run("authenticated", func(t *testing.T) {
|
||||
cc, err := grpc.Dial(li.Addr().String(),
|
||||
grpc.WithUnaryInterceptor(WithUnarySignedJWT(key)),
|
||||
grpc.WithStreamInterceptor(WithStreamSignedJWT(key)),
|
||||
grpc.WithUnaryInterceptor(WithUnarySignedJWT(func() []byte { return key })),
|
||||
grpc.WithStreamInterceptor(WithStreamSignedJWT(func() []byte { return key })),
|
||||
grpc.WithInsecure())
|
||||
if !assert.NoError(t, err) {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue