pargo-auth 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pargo-auth
3
- Version: 0.1.4
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
@@ -1,6 +1,6 @@
1
1
  """PARGO Auth - Shared authentication middleware for PARGO backend services."""
2
2
 
3
- __version__ = "0.1.4"
3
+ __version__ = "0.1.5"
4
4
 
5
5
  from .middleware import SupabaseAuth, get_current_user, require_auth
6
6
  from .models import AuthenticatedUser
@@ -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