atproto_oauth library

Classes

OAuthClient
OAuthClientMetadata
OAuthContext
OAuthSession
A class that manages OAuth 2.0 session information with DPoP (Demonstrating Proof of Possession) support.

Functions

getClientMetadata(String clientId) Future<OAuthClientMetadata>
Retrieves OAuth 2.0 client metadata from a client configuration endpoint.
getDPoPHeader({required String clientId, required String endpoint, required String method, required String dPoPNonce, String? authorizationServer, String? accessToken, required String publicKey, required String privateKey}) String
Generates a DPoP (Demonstrating Proof-of-Possession) proof JWT header for OAuth 2.0 requests.

Exceptions / Errors

OAuthException