graphql-authz
graphql-shield
Our great sponsors
graphql-authz | graphql-shield | |
---|---|---|
4 | 6 | |
172 | 3,512 | |
1.2% | - | |
4.7 | 3.7 | |
5 months ago | 5 days ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
graphql-authz
-
Authorization by entities
https://pothos-graphql.dev/docs/plugins/scope-auth https://github.com/AstrumU/graphql-authz
-
GraphQL AuthZ
Today we are excited to introduce GraphQL AuthZ - a new open-source library for adding authorization layers on top of your existing GraphQL microservices or monolith backend systems.
GraphQL AuthZ is a new approach for applying GraphQL native authorization. We are happy that we can finally share this library with the community and keen to learn about the ways it might be used within your next project!
The announcement is at https://the-guild.dev/blog/graphql-authz and the repo at https://github.com/AstrumU/graphql-authz
-
Introducing GraphQL-AuthZ
The announcement is at https://the-guild.dev/blog/graphql-authz and the repo at https://github.com/AstrumU/graphql-authz
-
GraphQL AuthZ - GraphQL Authorization layer
Compatibility with modern GraphQL technologies providing ways to wrap the graphql.js execute function. Here are a few working examples for Envelop, GraphQL Helix, Apollo Server, and express-graphql.
graphql-shield
-
How can GraphQL Shield play nicely with Type Based Error Handling?
- https://github.com/dimatill/graphql-shield/issues/988 - https://github.com/dimatill/graphql-shield/issues/1485
-
HaloAPI.dev - Open-source GraphQL API for Infinite
Second a NextJS app is deployed to Vercel containing a GraphQL server function. This is an Apollo server that consumes the halo-graphql package using GraphQL Modules. The server also implements caching and rate limiting using GraphQL Shield.
-
GraphQL AuthZ - GraphQL Authorization layer
GraphQL Shield is a great tool for creating authorization layers that has vast adoption from the community. In fact, GraphQL AuthZ is highly inspired by GraphQL Shield! However, GraphQL Shield uses a different approach compared to GraphQL AuthZ for applying authorization rules.
-
Manage complex permissions/access rights
Haven't used it yet but GraphQL Shield looks pretty good. https://github.com/maticzav/graphql-shield
-
GraphQL - Diving Deep
You can also use libraries like GraphQL Shield which offers powerful middlewares to do this. But remember that authorization does come with attached cost since you are running a specific logic in/before your resolvers for all the fields which you want to authorize.
-
How to implement security for fields ?
Try graphql-shield
What are some alternatives?
graphql-public-schema-filter - Filter your GraphQL graph into a subgraph. Code-first & SDL-first!
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
schema-stitching-handbook - Guided examples exploring GraphQL Tools v6+ Schema Stitching
apollo-server - 🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
Neo4j - Graphs for Everyone
express-graphql - Create a GraphQL HTTP server with Express.
graphql-spec - GraphQL is a query language and execution engine tied to any backend service.
graphql-js - A reference implementation of GraphQL for JavaScript
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
dgraph - The high-performance database for modern applications
frank_jwt - JSON Web Token implementation in Rust.
apollo-cache-persist - 🎏 Simple persistence for all Apollo Cache implementations