graphql / graphql/graphql.github.io
Schema Diffing for Authorization
- 主要言語
- TypeScript
- スター
- 889
- フォーク
- 1.5k
- 平均マージ
- 4日 12時間
- マージ済み PR(30日)
- 21
説明
After briefly discussing this approach in GraphQL-spec (https://github.com/graphql/graphql-spec/issues/592) I realized that this should instead be added as best-practice and not necessarily be part of the spec. Since the initial RFC, I have also added this information in "graphql-rules", available here: (https://graphql-rules.com/rules/authorization-schema-diffing) {https://github.com/graphql-rules/graphql-rules/pull/13}
As of now graphql.org suggests a single method of authorization; however in practice I have had to implement a different approach to address various concerns which I have discussed in the links mentioned before.
The Schema diffing approach can be likened to an API Gateway implementation of authorization and has it's benefits; as such I suggest that we include this approach in the knowledge base so that it can be more widely used and discussed.
コントリビューションガイド
調査の方向性
graphql.org にある既存の認可ガイダンスと、リンクされている graphql-rules ルールを確認し、その後、サイトのナレッジベースコンテンツのエントリーポイントを特定してください。既存の方法と併せてスキーマ差分化のアプローチがベストプラクティスとして文書化され、その根拠が明確になっていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, typescript
- 領域
- api, authorization, documentation
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100