
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Python 3 library providing foundations for Annotell Authentication
on top of the requests
or httpx
libraries.
Install with pip install annotell-auth[requests]
or pip install annotell-auth[httpx]
Builds on the standard OAuth 2.0 Client Credentials flow. There are a few ways to provide auth credentials to our api
clients. Annotell Python clients such as in annotell-input-api
accept an auth
parameter that
can be set explicitly or you can omit it and use environment variables.
There are a few ways to set your credentials in auth
.
ANNOTELL_CREDENTIALS
to point to your Annotell Credentials file.
The credentials will contain the Client Id and Client Secret.auth="~/.config/annotell/credentials.json"
ANNOTELL_CLIENT_ID
andANNOTELL_CLIENT_SECRET
auth=(client_id, client_secret)
API clients such as the InputApiClient
accept this auth
parameter.
Under the hood, they commonly use the AuthSession class which is implements a requests
session with automatic token
refresh. An httpx
implementation is also available.
from annotell.auth.requests.auth_session import RequestsAuthSession
sess = RequestsAuthSession()
# make call to some Annotell service with your token. Use default requests
sess.get("https://api.annotell.com")
Refactor for backend separation, with optional dependencies for either httpx
or requests
.
FaultTolerantAuthRequestSession
authsession
module backed by requests
is untouched for now.requests.Session
on FaultTolerantAuthRequestSession
FaultTolerantAuthRequestSession
that handles token refresh on long running sessions.auth
parameter, with path to credentials file or AnnotellCredentials
objectFAQs
Annotell Authentication
We found that annotell-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.