pargo-auth 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl

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/__init__.py CHANGED
@@ -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
pargo_auth/middleware.py CHANGED
@@ -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
@@ -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
@@ -0,0 +1,8 @@
1
+ pargo_auth/__init__.py,sha256=uBhCVtKdxIfPYlVHE1ZwRqeDqaPtQHq4XJtxYR9ik4A,454
2
+ pargo_auth/exceptions.py,sha256=Qckee29SlPf8VS21s-1gT8j_gCoYKaJhYKet9DE28WE,879
3
+ pargo_auth/middleware.py,sha256=nxBD5s5Gz4jdsRRudBnU8r8CxG11MzRSiS2DK90kTvM,6841
4
+ pargo_auth/models.py,sha256=I_mb0PGPy7FHZbMHxs1tR4NekD-cv1Ea4ZSzjStDZo4,548
5
+ pargo_auth-0.1.5.dist-info/METADATA,sha256=XVezqiXsGWJxL2gXqeIz6PpJKJ8wNpuB6y8IVV1eUgo,3612
6
+ pargo_auth-0.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
7
+ pargo_auth-0.1.5.dist-info/licenses/LICENSE,sha256=A-E9k545xbWsw-1DRhKLXcePHJ15tKx_bQl12OabqEY,1062
8
+ pargo_auth-0.1.5.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- pargo_auth/__init__.py,sha256=vchweTgD6p6aKw4AVb62G2lUqvA7ngC7AyePAp2AL-8,454
2
- pargo_auth/exceptions.py,sha256=Qckee29SlPf8VS21s-1gT8j_gCoYKaJhYKet9DE28WE,879
3
- pargo_auth/middleware.py,sha256=fCh41HYMfNQbEieVFnUG6uCl-wr0SQ2KahGX297HCYE,6779
4
- pargo_auth/models.py,sha256=I_mb0PGPy7FHZbMHxs1tR4NekD-cv1Ea4ZSzjStDZo4,548
5
- pargo_auth-0.1.4.dist-info/METADATA,sha256=diGGOxS-tBKP67ud2AMGWvyrBxImKrtXlPcoAihDktc,3612
6
- pargo_auth-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
7
- pargo_auth-0.1.4.dist-info/licenses/LICENSE,sha256=A-E9k545xbWsw-1DRhKLXcePHJ15tKx_bQl12OabqEY,1062
8
- pargo_auth-0.1.4.dist-info/RECORD,,