atproto/oauth/metadata

atproto OAuth discovery: from a user’s PDS, find and verify the authorization server and its endpoints. A thin sync wrapper over atproto_core/oauth/metadata; the types are re-exported from there.

Types

pub type MetadataError =
  metadata.MetadataError
pub type ProtectedResource =
  metadata.ProtectedResource

Values

pub fn discover(
  client: xrpc.Client,
  pds: remote.Origin,
) -> Result(metadata.AuthorizationServer, metadata.MetadataError)

Resolve a PDS to its verified authorization server in one call.

pub fn fetch_authorization_server(
  client: xrpc.Client,
  issuer: remote.Origin,
) -> Result(metadata.AuthorizationServer, metadata.MetadataError)
pub fn fetch_protected_resource(
  client: xrpc.Client,
  pds: remote.Origin,
) -> Result(metadata.ProtectedResource, metadata.MetadataError)
✨ Search Document