the37lab-authlib 0.1.1750844514__py3-none-any.whl → 0.1.1750952955__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.
Potentially problematic release.
This version of the37lab-authlib might be problematic. Click here for more details.
- the37lab_authlib/auth.py +2 -0
- the37lab_authlib/decorators.py +2 -0
- {the37lab_authlib-0.1.1750844514.dist-info → the37lab_authlib-0.1.1750952955.dist-info}/METADATA +1 -1
- the37lab_authlib-0.1.1750952955.dist-info/RECORD +10 -0
- the37lab_authlib-0.1.1750844514.dist-info/RECORD +0 -10
- {the37lab_authlib-0.1.1750844514.dist-info → the37lab_authlib-0.1.1750952955.dist-info}/WHEEL +0 -0
- {the37lab_authlib-0.1.1750844514.dist-info → the37lab_authlib-0.1.1750952955.dist-info}/top_level.txt +0 -0
the37lab_authlib/auth.py
CHANGED
|
@@ -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
|
|
the37lab_authlib/decorators.py
CHANGED
|
@@ -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()
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
the37lab_authlib/__init__.py,sha256=cFVTWL-0YIMqwOMVy1P8mOt_bQODJp-L9bfp2QQ8CTo,132
|
|
2
|
+
the37lab_authlib/auth.py,sha256=VXyq539H2KlnbB4l1HZXKNVdagBXSFi1PS8TomU2Zt4,21204
|
|
3
|
+
the37lab_authlib/db.py,sha256=fTXxnfju0lmbFGPVbXpTMeDmJMeBgURVZTndyxyRyCc,2734
|
|
4
|
+
the37lab_authlib/decorators.py,sha256=L-gJUUwDUT2JXTptQ6XEey1LkI5RprbqzEfArWI7F8Y,1305
|
|
5
|
+
the37lab_authlib/exceptions.py,sha256=mdplK5sKNtagPAzSGq5NGsrQ4r-k03DKJBKx6myWwZc,317
|
|
6
|
+
the37lab_authlib/models.py,sha256=-PlvQlHGIsSdrH0H9Cdh_vTPlltGV8G1Z1mmGQvAg9Y,3422
|
|
7
|
+
the37lab_authlib-0.1.1750952955.dist-info/METADATA,sha256=caproUvYgW08eZbp5k1gixqNwCRp-YogYUFhyItuGHc,6352
|
|
8
|
+
the37lab_authlib-0.1.1750952955.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
the37lab_authlib-0.1.1750952955.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
|
|
10
|
+
the37lab_authlib-0.1.1750952955.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
the37lab_authlib/__init__.py,sha256=cFVTWL-0YIMqwOMVy1P8mOt_bQODJp-L9bfp2QQ8CTo,132
|
|
2
|
-
the37lab_authlib/auth.py,sha256=Djqm_kwVwMO2VhFoGkHptejw66WRp787twS0GWRwwM4,21102
|
|
3
|
-
the37lab_authlib/db.py,sha256=fTXxnfju0lmbFGPVbXpTMeDmJMeBgURVZTndyxyRyCc,2734
|
|
4
|
-
the37lab_authlib/decorators.py,sha256=AEQfix31fHUZvhEZd4Ud8Zh2KBGjV6O_braiPL-BU7w,1219
|
|
5
|
-
the37lab_authlib/exceptions.py,sha256=mdplK5sKNtagPAzSGq5NGsrQ4r-k03DKJBKx6myWwZc,317
|
|
6
|
-
the37lab_authlib/models.py,sha256=-PlvQlHGIsSdrH0H9Cdh_vTPlltGV8G1Z1mmGQvAg9Y,3422
|
|
7
|
-
the37lab_authlib-0.1.1750844514.dist-info/METADATA,sha256=sxPtONgXu1hIGi1UvtH9rPT642oK3jdIT1OTBU2Uu4w,6352
|
|
8
|
-
the37lab_authlib-0.1.1750844514.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
the37lab_authlib-0.1.1750844514.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
|
|
10
|
-
the37lab_authlib-0.1.1750844514.dist-info/RECORD,,
|
{the37lab_authlib-0.1.1750844514.dist-info → the37lab_authlib-0.1.1750952955.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|