Expand description
com.atproto.server.getServiceAuth, and the rules a proxied call shares
with it; see crate::proxy.
Both sign a service-auth token as an account, for another service to
accept as that account calling it: the XRPC spec’s “Inter-Service
Authentication”. The limits are the reference PDS’s
(packages/pds/src/api/com/atproto/server/getServiceAuth.ts): how far out
exp may be, the shorter bound on a token bound to no method, and the
methods that get no token at all.
Structs§
- Caller 🔒
- Who a call at another service speaks for.
- Service
Auth 🔒Query - The query
getServiceAuthtakes.
Constants§
- MAX_
AUD_ 🔒BYTES - The longest
audthe lexicon admits, in bytes. - MAX_
LIFETIME - The furthest out a requested
expmay be. - MAX_
UNBOUND_ LIFETIME - The furthest out a requested
expmay be on a token bound to no method. - PATH 🔒
- Where
getServiceAuthis served, which a DPoP proof binds to. - PROTECTED_
METHODS 🔒 - Methods that manage an account, which get no service-auth token and are
not proxied: the reference PDS’s
PROTECTED_METHODS. Matched without regard to case, as it matches them.
Functions§
- authorize 🔒
- Resolves the credential on a call at another service, and checks that
it may call
lxmataud. - bad_
expiration 🔒 BadExpiration, the one error the lexicon declares.- expiry 🔒
- When a token for
expstops being good:expitself when it is in bounds, orDEFAULT_LIFETIMEfromnowwhen the caller named none. - get_
service_ 🔒auth GET /xrpc/com.atproto.server.getServiceAuth- is_
audience 🔒 - Whether
audis an atproto DID, or one with a service fragment. - is_
fragment 🔒 - Whether
fragmentis a non-empty RFC 3986 fragment, the syntax a DID URL’s service id takes. - is_
protected 🔒 - Whether
lxmis one ofPROTECTED_METHODS. - issue 🔒
- sign 🔒
- Signs
tokenasdid, through the registry that holds its key.