OAuth 2.0 Protected Resource Metadata per RFC 9728.
Generates the JSON document served at /.well-known/oauth-protected-resource
that describes a resource server's authorization requirements. This tells clients
which authorization servers to use, what scopes are available, and how to present
bearer tokens.
OAuth 2.0 Protected Resource Metadata per RFC 9728. Generates the JSON document served at `/.well-known/oauth-protected-resource` that describes a resource server's authorization requirements. This tells clients which authorization servers to use, what scopes are available, and how to present bearer tokens.
(resource-metadata {:keys [resource authorization-servers scopes-supported
bearer-methods-supported resource-documentation]
:as config})Generates OAuth 2.0 Protected Resource Metadata per RFC 9728.
Takes a configuration map matching ResourceServerConfig containing the resource
identifier, authorization server URIs, and optional metadata. Validates the input
and builds the metadata document with snake_case keys suitable for JSON serialization.
Defaults bearer_methods_supported to ["header"] when not provided.
Generates OAuth 2.0 Protected Resource Metadata per RFC 9728. Takes a configuration map matching [[ResourceServerConfig]] containing the resource identifier, authorization server URIs, and optional metadata. Validates the input and builds the metadata document with snake_case keys suitable for JSON serialization. Defaults `bearer_methods_supported` to `["header"]` when not provided.
Malli schema for protected resource metadata configuration.
Malli schema for protected resource metadata configuration.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |