* 生成 OAuth Protected Resource Metadata (RFC 9728)
()
| 127 | * 生成 OAuth Protected Resource Metadata (RFC 9728) |
| 128 | */ |
| 129 | function generateOAuthProtectedResource() { |
| 130 | return JSON.stringify({ |
| 131 | resource: `${SITE_URL}`, |
| 132 | authorization_servers: [ |
| 133 | 'https://id.giffgaff.com' |
| 134 | ], |
| 135 | scopes_supported: [ |
| 136 | 'openid', |
| 137 | 'profile' |
| 138 | ], |
| 139 | bearer_methods_supported: [ |
| 140 | 'header' |
| 141 | ], |
| 142 | resource_documentation: `${SITE_URL}/docs/api` |
| 143 | }, null, 2); |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * 生成 MCP Server Card (SEP-2127) |