Skip to main content

get_service_auth

Function get_service_auth 

Source
pub async fn get_service_auth(
    __arg0: State<Arc<OAuthState>>,
    __arg1: Extension<AuthenticatedUser>,
    __arg2: RawQuery,
) -> Response
Expand description

Mint a short-lived, method-bound ATProto service JWT using the hosted account’s persisted #atproto key.

Authentication and DPoP proof verification happen in the protected-router middleware. This handler independently re-verifies the signed OAuth grant before deriving scope, subject, or tenant authority from it.