Authentication

Authentication handler for PACER Case Locator API using CSO credentials.

exception pacersdk.auth.AuthenticationError

Bases: Exception

Authentication error.

class pacersdk.auth.Authenticator(username: str, password: str, config: dict, secret: str = None, client_code: str = None, redaction: bool = False)

Bases: object

Manages authentication with the PACER Case Locator API.

get_token() str

Authenticate and retrieve a session token.

Returns:

A valid session token string.

Raises:

AuthenticationError – If authentication fails.

logout() None

Log out and invalidate the session token.