@giraphql/plugin-auth
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

Auth Plugin for GiraphQL

This plugin provides a way to handle authorization/permissions checks throughout your schema.

Because GraphQL schemas are graphs and fields can be aliased in responses, knowing what data is accessed at the root a query can be very difficult. Using a traditioal pattern of performing checks at the start of a request, or by inrospecting the result of a request does not work well, since data may be queried through a complex set of relations, and the resulting response can have fields aliased to any other name.

The GirahQL auth plugin tries to solve a number of common authorization patterns/problems:

  • Simple checks on any field in a schem (At the Query/Mutation level, or nested deep inside a schema)
  • Checks that run before resolving any field of a specific type
  • Checks that run after resolving any field of a specific type
  • Defining reusable permissions that are used by multiple field on the same object
  • Granting permissions from a parent field to the objects/types it returns

Full docs available at https://giraphql.com/plugins/auth

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.29latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.29
1.3.10
1.3.00
1.3.0-alpha.10
1.3.0-alpha.00
1.2.00
1.1.00
1.1.0-alpha.00
1.0.30
1.0.20
1.0.10
1.0.00
0.21.30
0.21.20
0.21.10
0.21.00
0.20.10
0.20.00
0.19.00
0.18.50
0.18.40
0.18.30
0.18.20
0.18.10
0.18.00
0.17.00
0.17.0-alpha.00
0.16.10
0.16.00
0.15.00
0.14.30
0.14.20
0.14.10
0.14.00
0.13.40
0.13.30
0.13.20
0.13.10
0.13.00
0.13.0-alpha.10
0.13.0-alpha.00
0.11.10
0.12.0-alpha.00
0.11.00
0.11.0-alpha.50
0.11.0-alpha.40
0.11.0-alpha.30
0.11.0-alpha.20
0.11.0-alpha.10
0.11.0-alpha.00
0.10.30
0.10.20
0.10.10
0.10.00
0.9.10
0.9.00
0.8.00
0.7.70
0.7.60
0.7.50
0.7.40
0.7.30
0.7.20
0.7.10
0.7.00
0.6.20
0.6.10
0.6.00
0.5.00
0.4.1-alpha.00
0.4.0-alpha.10
0.4.0-alpha.00
0.3.1-alpha.00
0.3.0-alpha.00
0.2.5-alpha.00
0.2.4-alpha.00
0.2.3-alpha.00
0.2.2-alpha.00
0.2.1-alpha.00
0.2.0-alpha.00
0.1.1-alpha.10
0.1.1-alpha.00

Package Sidebar

Install

npm i @giraphql/plugin-auth

Weekly Downloads

9

Version

1.3.2

License

ISC

Unpacked Size

344 kB

Total Files

77

Last publish

Collaborators

  • hayes