the37lab-authlib 0.1.1750844514__tar.gz → 0.1.1750952955__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.

Potentially problematic release.


This version of the37lab-authlib might be problematic. Click here for more details.

Files changed (15) hide show
  1. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/PKG-INFO +1 -1
  2. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/pyproject.toml +1 -1
  3. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/auth.py +2 -0
  4. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/decorators.py +2 -0
  5. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib.egg-info/PKG-INFO +1 -1
  6. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/README.md +0 -0
  7. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/setup.cfg +0 -0
  8. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/__init__.py +0 -0
  9. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/db.py +0 -0
  10. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/exceptions.py +0 -0
  11. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib/models.py +0 -0
  12. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib.egg-info/SOURCES.txt +0 -0
  13. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib.egg-info/dependency_links.txt +0 -0
  14. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib.egg-info/requires.txt +0 -0
  15. {the37lab_authlib-0.1.1750844514 → the37lab_authlib-0.1.1750952955}/src/the37lab_authlib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: the37lab_authlib
3
- Version: 0.1.1750844514
3
+ Version: 0.1.1750952955
4
4
  Summary: Python SDK for the Authlib
5
5
  Author-email: the37lab <info@the37lab.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "the37lab_authlib"
7
- version = "0.1.1750844514"
7
+ version = "0.1.1750952955"
8
8
  description = "Python SDK for the Authlib"
9
9
  authors = [{name = "the37lab", email = "info@the37lab.com"}]
10
10
  dependencies = ["flask", "psycopg2-binary", "pyjwt", "python-dotenv", "requests", "authlib", "bcrypt"]
@@ -160,6 +160,8 @@ class AuthManager:
160
160
 
161
161
  @bp.before_request
162
162
  def load_user():
163
+ if request.method == 'OPTIONS':
164
+ return # Skip authentication for OPTIONS
163
165
  if request.endpoint not in self.public_endpoints:
164
166
  g.requesting_user = self._authenticate_request()
165
167
 
@@ -6,6 +6,8 @@ def require_auth(roles=None):
6
6
  def decorator(f):
7
7
  @wraps(f)
8
8
  def decorated(*args, **kwargs):
9
+ if request.method == 'OPTIONS':
10
+ return f(*args, **kwargs)
9
11
  try:
10
12
  # Get the require_auth decorator from AuthManager
11
13
  user = current_app.auth_manager.get_current_user()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: the37lab_authlib
3
- Version: 0.1.1750844514
3
+ Version: 0.1.1750952955
4
4
  Summary: Python SDK for the Authlib
5
5
  Author-email: the37lab <info@the37lab.com>
6
6
  Classifier: Programming Language :: Python :: 3