summaryrefslogtreecommitdiffstats
path: root/internal/auth/auth_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/auth/auth_test.go')
-rw-r--r--internal/auth/auth_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go
index d5f3257..bcbb4a3 100644
--- a/internal/auth/auth_test.go
+++ b/internal/auth/auth_test.go
@@ -243,8 +243,15 @@ func TestValidateAuthFromContext(t *testing.T) {
243 ctx := metadata.NewIncomingContext(context.Background(), md) 243 ctx := metadata.NewIncomingContext(context.Background(), md)
244 244
245 opts := &InterceptorOptions{ 245 opts := &InterceptorOptions{
246 Read: OperationAuthConfig{
247 Enabled: true,
248 AllowedNpubs: nil,
249 },
250 Write: OperationAuthConfig{
251 Enabled: true,
252 AllowedNpubs: nil,
253 },
246 TimestampWindow: 60, 254 TimestampWindow: 60,
247 Required: true,
248 } 255 }
249 256
250 pubkey, err := validateAuthFromContext(ctx, "/test.Service/Method", opts) 257 pubkey, err := validateAuthFromContext(ctx, "/test.Service/Method", opts)