OAUTH Protected Resource

Publish OAuth Protected Resource Metadata

whiteknightonhorse Updated

File contents

Publish OAuth Protected Resource Metadata

AIPUSH agent skill · Category: Identity & Auth · Slug: oauth-protected-resource

RFC 9728 metadata tells agents which authorization servers can issue tokens for your resource and which scopes exist — so they can obtain the right access token.

Why it matters

RFC 9728 metadata tells agents which authorization servers can issue tokens for your resource and which scopes exist — so they can obtain the right access token.

How to detect

Request https://YOURDOMAIN/.well-known/oauth-protected-resource (HTTP 200, valid JSON).

How to implement

Serve /.well-known/oauth-protected-resource:

{
  "resource": "https://YOURDOMAIN",
  "authorization_servers": ["https://YOURDOMAIN"],
  "scopes_supported": ["read", "write"],
  "bearer_methods_supported": ["header"]
}

How to verify

curl -s https://YOURDOMAIN/.well-known/oauth-protected-resource | jq .authorization_servers lists your AS.

References


Part of the AIPUSH agent skills catalog. Scan your site free at https://aipush.app.

whiteknightonhorse/aipush-agent-skills/tree/main/skills/oauth-protected-resource commit acc099e3bb

Frequently asked questions

npx skillmds@latest add whiteknightonhorse/oauth-protected-resource