mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
core/authorize: cache prepared query building
This commit is contained in:
parent
0b79a28328
commit
42233223cb
11 changed files with 143 additions and 67 deletions
|
@ -36,7 +36,8 @@ func TestEvaluator(t *testing.T) {
|
|||
store := store.New()
|
||||
store.UpdateJWTClaimHeaders(config.NewJWTClaimHeaders("email", "groups", "user", "CUSTOM_KEY"))
|
||||
store.UpdateSigningKey(privateJWK)
|
||||
e, err := New(ctx, store, options...)
|
||||
compiler := NewRegoCompiler(store)
|
||||
e, err := New(ctx, compiler, options...)
|
||||
require.NoError(t, err)
|
||||
return e.Evaluate(ctx, req)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue