ProtectedResourceMetadata

OAuth 2.0 Protected Resource Metadata (RFC 9728).

@safe
struct ProtectedResourceMetadata {
string resource;
string[] authorizationServers;
string[] scopesSupported;
}

Members

Functions

toJson
Json toJson()

Serialize to the RFC 9728 metadata document a protected resource server publishes at /.well-known/oauth-protected-resource. resource and authorization_servers are always present; scopes_supported is emitted only when non-empty.