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/oauth/core/metadata; the AuthServerMetadata type is re-exported
from there.
Types
pub type AuthServerMetadata =
metadata.AuthServerMetadata
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)