mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
authorize: add support for cidr lookups (#3277)
This commit is contained in:
parent
9dbe12fe99
commit
c19048649a
15 changed files with 372 additions and 89 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
"google.golang.org/protobuf/encoding/protojson"
|
||||
|
||||
"github.com/pomerium/pomerium/authorize/evaluator"
|
||||
"github.com/pomerium/pomerium/authorize/internal/store"
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/encoding/jws"
|
||||
"github.com/pomerium/pomerium/internal/testutil"
|
||||
|
@ -39,7 +40,7 @@ func TestAuthorize_okResponse(t *testing.T) {
|
|||
encoder, _ := jws.NewHS256Signer([]byte{0, 0, 0, 0})
|
||||
a.state.Load().encoder = encoder
|
||||
a.currentOptions.Store(opt)
|
||||
a.store = evaluator.NewStoreFromProtos(0,
|
||||
a.store = store.NewFromProtos(0,
|
||||
&session.Session{
|
||||
Id: "SESSION_ID",
|
||||
UserId: "USER_ID",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue