atproto/oauth/metadata

atproto OAuth discovery: from a user’s PDS, find the authorization server and its endpoints. A thin sync wrapper over the shared effect kernel in atproto_core/oauth/metadata; the AuthServerMetadata type is re-exported from there.

Types

Values

pub fn discover(
  client: xrpc.Client,
  pds: String,
) -> Result(metadata.AuthServerMetadata, xrpc.XrpcError)

Resolve a PDS to its authorization server’s endpoints in one call.

pub fn fetch_authorization_server(
  client: xrpc.Client,
  issuer: String,
) -> Result(metadata.AuthServerMetadata, xrpc.XrpcError)
pub fn fetch_protected_resource(
  client: xrpc.Client,
  pds: String,
) -> Result(List(String), xrpc.XrpcError)
Search Document