<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>FieldLevelAuthorization on PlumePHP</title><link>https://plumephp.com/tags/fieldlevelauthorization/</link><description>Recent content in FieldLevelAuthorization on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 29 Sep 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/fieldlevelauthorization/index.xml" rel="self" type="application/rss+xml"/><item><title>GraphQL 认证与授权：从 JWT 到字段级权限</title><link>https://plumephp.com/graphql-authentication-authorization/</link><pubDate>Tue, 29 Sep 2026 09:00:00 +0800</pubDate><guid>https://plumephp.com/graphql-authentication-authorization/</guid><description>&lt;p&gt;认证（Authentication，你是谁）与授权（Authorization，你能做什么）是每个 GraphQL 服务的第一道安全门。REST 时代我们在路由层按 URL 配权限，但 GraphQL 只有一条路由——权限判断下沉到了 &lt;strong&gt;resolver 层和字段层&lt;/strong&gt;。这个差异是 GraphQL 安全设计的地基：没有「按字段授权」的 GraphQL 服务，就像在 REST 里只保护了 &lt;code&gt;/users&lt;/code&gt; 却没保护返回的用户列表字段。&lt;/p&gt;
&lt;p&gt;本文从认证凭证在 GraphQL 中的传递讲起，深入授权模型（RBAC/ABAC）、resolver 层授权、字段级权限、Federation 跨子图授权，最后覆盖 GraphQL 特有的攻击面与授权测试。&lt;/p&gt;</description></item></channel></rss>