graphql / graphql/graphql.github.io

Schema Diffing for Authorization

Đang mở
#733 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
💬 Feedback
Ngôn ngữ chính
TypeScript
Star
889
Fork
1.5k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
21

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Xem lại hướng dẫn hiện có về ủy quyền trên graphql.org và quy tắc graphql-rules được liên kết, sau đó xác định điểm đầu vào của nội dung cơ sở kiến thức của trang web. Công việc được xem là hoàn tất khi phương pháp đối chiếu schema được ghi lại như một thực hành tốt nhất bên cạnh phương pháp hiện có và lý do của phương pháp này được nêu rõ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
graphql, typescript
Lĩnh vực
api, authorization, documentation
Loại issue
Tài liệu
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.