pub const fn authorization_model(version: ProtocolVersion) -> AuthorizationModelExpand description
What version’s authorization spec requires.
A pure function of the revision, so it is testable per row without a socket and cannot drift from the revision it was written against.
§Examples
use protocol_droid::domain::mcp::authorization::authorization_model;
use protocol_droid::domain::ProtocolVersion;
// 2024-11-05 never defined an authorization framework.
assert!(!authorization_model(ProtocolVersion::V2024_11_05).specified);
// 2025-03-26 introduced OAuth 2.1 but not the resource-server
// classification, so it has no protected-resource metadata.
let m = authorization_model(ProtocolVersion::V2025_03_26);
assert!(m.specified);
assert!(!m.protected_resource_metadata);