pargo-auth 0.1.2__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/.github/workflows/publish.yml +1 -1
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/PKG-INFO +1 -1
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/src/pargo_auth/__init__.py +1 -1
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/src/pargo_auth/middleware.py +2 -2
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/.gitignore +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/LICENSE +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/README.md +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/pyproject.toml +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/pytest.ini +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/src/pargo_auth/exceptions.py +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/src/pargo_auth/models.py +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/tests/__init__.py +0 -0
- {pargo_auth-0.1.2 → pargo_auth-0.1.5}/tests/test_middleware.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pargo-auth
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Shared authentication middleware for PARGO backend services
|
|
5
5
|
Project-URL: Homepage, https://github.com/pargoorg/pargo-auth
|
|
6
6
|
Project-URL: Repository, https://github.com/pargoorg/pargo-auth
|
|
@@ -81,11 +81,11 @@ class SupabaseAuth:
|
|
|
81
81
|
jwks_client = self._get_jwks_client()
|
|
82
82
|
signing_key = jwks_client.get_signing_key_from_jwt(token)
|
|
83
83
|
|
|
84
|
-
# Decode and verify
|
|
84
|
+
# Decode and verify (support both RS256 and ES256 - Supabase uses ES256)
|
|
85
85
|
payload = jwt.decode(
|
|
86
86
|
token,
|
|
87
87
|
signing_key.key,
|
|
88
|
-
algorithms=["RS256"],
|
|
88
|
+
algorithms=["ES256", "RS256"],
|
|
89
89
|
issuer=self.issuer,
|
|
90
90
|
options={
|
|
91
91
|
"verify_aud": False, # Supabase doesn't always set aud
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|