FastAPI middleware to authenticate Github OIDC Tokens
Reason this release was yanked:
Wheel is mis-built
Project description
FastAPI Github OIDC Middleware
FastAPI compatible middleware to authenticate Github OIDC Tokens
Want people to use your thing? Great! So we do. Make is easy!
Github OIDC is a secure authentication mechanism with near-zero configuration required for many applications.
Server Side
uv add "fastapi-github-oidc[server]"
from fastapi import Security, FastAPI
from github_oidc.server import GithubOIDC, GithubOIDCClaims
app = FastAPI()
@app.get("/")
async def root(claims: GithubOIDCClaims = Security(GithubOIDC())):
return claims
Client Side
uv add "fastapi-github-oidc"
You must also have either httpx or requests installed
from github_oidc.client import get_actions_token
token = get_actions_token(audience="atopile.io")
response = httpx.get(
"https://atopile.io",
headers={"Authorization": f"Bearer {token}"},
)
response.raise_for_status()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_github_oidc-0.1.0.tar.gz.
File metadata
- Download URL: fastapi_github_oidc-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64dd355c5c309ebb5e97d2fe59addcf8a9f235c5a156a6aff492b5682212d3d6
|
|
| MD5 |
48d3a2c0365203d592e574dc0cc7f830
|
|
| BLAKE2b-256 |
f19d46010d434ecfb7878039f5801ea41b29f479cdf2d5f48dc3f5ad57459531
|
Provenance
The following attestation bundles were made for fastapi_github_oidc-0.1.0.tar.gz:
Publisher:
release.yml on atopile/fastapi-github-oidc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_github_oidc-0.1.0.tar.gz -
Subject digest:
64dd355c5c309ebb5e97d2fe59addcf8a9f235c5a156a6aff492b5682212d3d6 - Sigstore transparency entry: 190551886
- Sigstore integration time:
-
Permalink:
atopile/fastapi-github-oidc@73c69ec7f738e3046b4e1673e9abebb6b3fa5028 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/atopile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73c69ec7f738e3046b4e1673e9abebb6b3fa5028 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fastapi_github_oidc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_github_oidc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d1760851efb647c3a21211c938da292c437e63a7470edf605a8b8a87ce0a97
|
|
| MD5 |
2f55485f65f3ff5ed3d5304555786a95
|
|
| BLAKE2b-256 |
a923b82675c693e6e2f69fe046c139b313b8e31c91c7e8052653301b1267180e
|
Provenance
The following attestation bundles were made for fastapi_github_oidc-0.1.0-py3-none-any.whl:
Publisher:
release.yml on atopile/fastapi-github-oidc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_github_oidc-0.1.0-py3-none-any.whl -
Subject digest:
32d1760851efb647c3a21211c938da292c437e63a7470edf605a8b8a87ce0a97 - Sigstore transparency entry: 190551887
- Sigstore integration time:
-
Permalink:
atopile/fastapi-github-oidc@73c69ec7f738e3046b4e1673e9abebb6b3fa5028 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/atopile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@73c69ec7f738e3046b4e1673e9abebb6b3fa5028 -
Trigger Event:
release
-
Statement type: