usso 0.24.1__py3-none-any.whl → 0.24.2__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.
usso/django/middleware.py CHANGED
@@ -30,10 +30,7 @@ class USSOAuthenticationMiddleware(MiddlewareMixin):
30
30
  # Attach the user to the request
31
31
  request.user = user
32
32
  else:
33
- return JsonResponse(
34
- {"error": "Authentication failed: No valid JWT token provided."},
35
- status=401,
36
- )
33
+ return None
37
34
  except USSOException as e:
38
35
  # Handle any errors raised by USSO authentication
39
36
  return JsonResponse({"error": str(e)}, status=401)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.24.1
3
+ Version: 0.24.2
4
4
  Summary: A plug-and-play client for integrating universal single sign-on (SSO) with Python frameworks, enabling secure and seamless authentication across microservices.
5
5
  Author-email: Mahdi Kiani <mahdikiany@gmail.com>
6
6
  Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
@@ -8,12 +8,12 @@ usso/exceptions.py,sha256=hawOAuVbvQtjgRfwp1KFZ4SmV7fh720y5Gom9JVA8W8,504
8
8
  usso/package_data.dat,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  usso/session.py,sha256=S3dFXzar0Pcwxj5TGqadKwGdmzmzgp4H2W3brfOwJ6A,1184
10
10
  usso/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- usso/django/middleware.py,sha256=DMLc6PjhHzzyy2SKPTZd5Ke2cDn45EsaKb9zkCBh2Fo,3185
11
+ usso/django/middleware.py,sha256=GXorowWoPXRqFNp6KkXjd5NXszik-pUFR_cECz8E2As,3040
12
12
  usso/fastapi/__init__.py,sha256=TRTDVJo8bwZQDAuCQFhh-g1XbIspf6TdFYXGAO5cgAU,130
13
13
  usso/fastapi/integration.py,sha256=Lt3qRwQ59K7GCDHgB0dE0hpc18gYZEjwMb_xS4qsGg0,1651
14
- usso-0.24.1.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
15
- usso-0.24.1.dist-info/METADATA,sha256=w6x93GLM_Y982B46wa-pkULRyjt9B1yRFOUdxAxHB2I,4231
16
- usso-0.24.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
17
- usso-0.24.1.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
18
- usso-0.24.1.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
19
- usso-0.24.1.dist-info/RECORD,,
14
+ usso-0.24.2.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
15
+ usso-0.24.2.dist-info/METADATA,sha256=6VZqL6bLF1h4muBRx2HZZcab4RZSiPbJQ5yjKmns_0U,4231
16
+ usso-0.24.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
17
+ usso-0.24.2.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
18
+ usso-0.24.2.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
19
+ usso-0.24.2.dist-info/RECORD,,
File without changes