Current collected state Current
Observed since 20 Oct, 16:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Async Python SDK for validating Azure AD B2C access tokens
Simplified Python SDK for verifying AD B2C-issued JWTs
import aad
token = "..." # JWT to verify
tenant = "..." # B2C tenant (as in `"{tenant}.b2clogin.com/{tenant}..."`)
app_id = "..." # ClientID of app registered in the B2C tenant
policy = "B2C_1_..." # policy (aka user flow) name
await aad.authorize(token, tenant, app_id, policy)
# {
# "idp": "...",
# "aud": "...",
# ... # other JWT fields
# ... # fields configured in B2C
# }
pip install aad[fastapi]
from fastapi import FastAPI
import aad
Claims = aad.claims(tenant, app_id, policy)
app = FastAPI()
@app.get("...")
def get(claims: Claims):
...
The JWT decoding part is heavily inspired by azure-ad-verify-token, but with an async interface
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.5 | 17 Mar 2024 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 16:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:07874f99703ef2cb33809f0c31ac1549b5b9b1bbd18ea4390609f4f1397c6497