Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
uses: actions/checkout@v5

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
16 changes: 16 additions & 0 deletions .github/workflows/sca_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: SCA

on:
push:
branches: ["master", "main", "**"]

jobs:
snyk-cli:
uses: auth0/devsecops-tooling/.github/workflows/sca-scan.yml@main
with:
additional-arguments: "--exclude=README.md,.jfrog --skip-unresolved"
python-version: "3.10"
pre-scan-commands: |
python3 -m venv venv --upgrade-deps
./venv/bin/pip3 install -r requirements.txt
secrets: inherit
40 changes: 0 additions & 40 deletions .github/workflows/snyk.yml

This file was deleted.

5 changes: 3 additions & 2 deletions examples/example-fastmcp-mcp/src/auth0/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
from collections.abc import Callable
from typing import Any

from auth0_api_python import ApiClient, ApiClientOptions
from auth0_api_python.errors import VerifyAccessTokenError
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.requests import Request
from starlette.responses import Response
from starlette.types import ASGIApp

from auth0_api_python import ApiClient, ApiClientOptions
from auth0_api_python.errors import VerifyAccessTokenError

from .errors import AuthenticationRequired, MalformedAuthorizationRequest

logger = logging.getLogger(__name__)
Expand Down
856 changes: 559 additions & 297 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ python = "^3.9"
authlib = "^1.0" # For JWT/OIDC features
requests = "^2.31.0" # If you use requests for HTTP calls (e.g., discovery)
httpx = "^0.28.1"
ada-url = "^1.25.0"
ada-url = "^1.27.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
pytest-cov = "^4.0"
pytest-asyncio = "^0.20.3"
pytest-mock = "^3.14.0"
pytest-asyncio = "^0.25.3"
pytest-mock = "^3.15.1"
pytest-httpx = "^0.35.0"
ruff = "^0.1.0"
ruff = ">=0.1,<0.15"

[tool.pytest.ini_options]
addopts = "--cov=src --cov-report=term-missing:skip-covered --cov-report=xml"
Expand Down
11 changes: 4 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Core runtime dependencies
authlib>=1.6.3
authlib>=1.6.5
httpx>=0.28.1
ada-url>=1.26.0

# Development and testing dependencies
ada-url>=1.27.0
pytest>=8.0
pytest-cov>=4.0
pytest-asyncio>=0.20.3
pytest-mock>=3.14.1
pytest-asyncio>=0.25.3
pytest-mock>=3.15.1
pytest-httpx>=0.35.0

3 changes: 2 additions & 1 deletion tests/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import httpx
import pytest
from pytest_httpx import HTTPXMock

from auth0_api_python.api_client import ApiClient
from auth0_api_python.config import ApiClientOptions
from auth0_api_python.errors import (
Expand All @@ -24,7 +26,6 @@
generate_token_with_cnf,
sha256_base64url,
)
from pytest_httpx import HTTPXMock

# Create public RSA JWK by selecting only public key components
PUBLIC_RSA_JWK = {k: PRIVATE_JWK[k] for k in ["kty", "n", "e", "alg", "use", "kid"] if k in PRIVATE_JWK}
Expand Down