├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .taprc ├── LICENSE ├── README.md ├── bench.sh ├── bench ├── gateway-bench.js ├── gateway-service-1.js ├── gateway-service-2.js ├── gateway-with-auth.js ├── gateway-without-auth.js ├── normal-bench-introspection.js ├── normal-bench.js ├── normal-setup.js ├── normal-with-auth.js ├── normal-with-introspection-filters.js └── normal-without-auth.js ├── docs ├── advanced.md ├── api │ └── options.md ├── apply-policy.md ├── auth-context.md ├── auth-directive.md ├── errors.md ├── external-policy.md ├── federation.md ├── schema-filtering.md └── schema-replacement.md ├── examples ├── advanced.js ├── basic.js ├── custom-errors.js ├── external-policy.js ├── gateway-with-auth-on-type.js ├── gateway.js ├── multiple-auth-plugins.js ├── mutliple-auth-roles.js ├── no-auth-context.js └── result-filter-replace.js ├── index.d.ts ├── index.js ├── lib ├── auth.js ├── errors.js ├── filter-schema.js ├── prune-schema.js ├── symbols.js └── validation.js ├── package.json ├── test ├── advanced.js ├── apply-policy.js ├── auth_on_type-gateway.js ├── basic-gateway.js ├── basic.js ├── external-policy-gateway-auth-on-type.js ├── external-policy-gateway.js ├── external-policy.js ├── introspection-filter-basics.js ├── introspection-filter.js ├── multiple-auth-roles.js ├── prune-schema.js ├── refresh.js ├── registration.js ├── repeteable-directives-gateway.js ├── repeteable-directives.js ├── result-filter-output.js └── types │ └── index.test-d.ts └── tsconfig.json /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/.gitignore -------------------------------------------------------------------------------- /.taprc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/.taprc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/README.md -------------------------------------------------------------------------------- /bench.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench.sh -------------------------------------------------------------------------------- /bench/gateway-bench.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/gateway-bench.js -------------------------------------------------------------------------------- /bench/gateway-service-1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/gateway-service-1.js -------------------------------------------------------------------------------- /bench/gateway-service-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/gateway-service-2.js -------------------------------------------------------------------------------- /bench/gateway-with-auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/gateway-with-auth.js -------------------------------------------------------------------------------- /bench/gateway-without-auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/gateway-without-auth.js -------------------------------------------------------------------------------- /bench/normal-bench-introspection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-bench-introspection.js -------------------------------------------------------------------------------- /bench/normal-bench.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-bench.js -------------------------------------------------------------------------------- /bench/normal-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-setup.js -------------------------------------------------------------------------------- /bench/normal-with-auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-with-auth.js -------------------------------------------------------------------------------- /bench/normal-with-introspection-filters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-with-introspection-filters.js -------------------------------------------------------------------------------- /bench/normal-without-auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/bench/normal-without-auth.js -------------------------------------------------------------------------------- /docs/advanced.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/advanced.md -------------------------------------------------------------------------------- /docs/api/options.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/api/options.md -------------------------------------------------------------------------------- /docs/apply-policy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/apply-policy.md -------------------------------------------------------------------------------- /docs/auth-context.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/auth-context.md -------------------------------------------------------------------------------- /docs/auth-directive.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/auth-directive.md -------------------------------------------------------------------------------- /docs/errors.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/errors.md -------------------------------------------------------------------------------- /docs/external-policy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/external-policy.md -------------------------------------------------------------------------------- /docs/federation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/federation.md -------------------------------------------------------------------------------- /docs/schema-filtering.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/schema-filtering.md -------------------------------------------------------------------------------- /docs/schema-replacement.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/docs/schema-replacement.md -------------------------------------------------------------------------------- /examples/advanced.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/advanced.js -------------------------------------------------------------------------------- /examples/basic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/basic.js -------------------------------------------------------------------------------- /examples/custom-errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/custom-errors.js -------------------------------------------------------------------------------- /examples/external-policy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/external-policy.js -------------------------------------------------------------------------------- /examples/gateway-with-auth-on-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/gateway-with-auth-on-type.js -------------------------------------------------------------------------------- /examples/gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/gateway.js -------------------------------------------------------------------------------- /examples/multiple-auth-plugins.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/multiple-auth-plugins.js -------------------------------------------------------------------------------- /examples/mutliple-auth-roles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/mutliple-auth-roles.js -------------------------------------------------------------------------------- /examples/no-auth-context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/no-auth-context.js -------------------------------------------------------------------------------- /examples/result-filter-replace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/examples/result-filter-replace.js -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/index.d.ts -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/index.js -------------------------------------------------------------------------------- /lib/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/auth.js -------------------------------------------------------------------------------- /lib/errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/errors.js -------------------------------------------------------------------------------- /lib/filter-schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/filter-schema.js -------------------------------------------------------------------------------- /lib/prune-schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/prune-schema.js -------------------------------------------------------------------------------- /lib/symbols.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/symbols.js -------------------------------------------------------------------------------- /lib/validation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/lib/validation.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/package.json -------------------------------------------------------------------------------- /test/advanced.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/advanced.js -------------------------------------------------------------------------------- /test/apply-policy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/apply-policy.js -------------------------------------------------------------------------------- /test/auth_on_type-gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/auth_on_type-gateway.js -------------------------------------------------------------------------------- /test/basic-gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/basic-gateway.js -------------------------------------------------------------------------------- /test/basic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/basic.js -------------------------------------------------------------------------------- /test/external-policy-gateway-auth-on-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/external-policy-gateway-auth-on-type.js -------------------------------------------------------------------------------- /test/external-policy-gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/external-policy-gateway.js -------------------------------------------------------------------------------- /test/external-policy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/external-policy.js -------------------------------------------------------------------------------- /test/introspection-filter-basics.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/introspection-filter-basics.js -------------------------------------------------------------------------------- /test/introspection-filter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/introspection-filter.js -------------------------------------------------------------------------------- /test/multiple-auth-roles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/multiple-auth-roles.js -------------------------------------------------------------------------------- /test/prune-schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/prune-schema.js -------------------------------------------------------------------------------- /test/refresh.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/refresh.js -------------------------------------------------------------------------------- /test/registration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/registration.js -------------------------------------------------------------------------------- /test/repeteable-directives-gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/repeteable-directives-gateway.js -------------------------------------------------------------------------------- /test/repeteable-directives.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/repeteable-directives.js -------------------------------------------------------------------------------- /test/result-filter-output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/result-filter-output.js -------------------------------------------------------------------------------- /test/types/index.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/test/types/index.test-d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercurius-js/auth/HEAD/tsconfig.json --------------------------------------------------------------------------------