the37lab-authlib 0.1.1749238112__py3-none-any.whl → 0.1.1749243221__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 CHANGED
@@ -28,6 +28,7 @@ def handle_auth_errors(f):
28
28
 
29
29
  class AuthManager:
30
30
  def __init__(self, app=None, db_dsn=None, jwt_secret=None, oauth_config=None, id_type='integer'):
31
+ logger.info("INITIALIZING AUTHMANAGER {} - {} - {}".format(db_dsn, jwt_secret, not app))
31
32
  self.db = Database(db_dsn, id_type=id_type) if db_dsn else None
32
33
  self.jwt_secret = jwt_secret
33
34
  logger.debug(f"Initializing AuthManager with JWT secret: {jwt_secret[:5]}..." if jwt_secret else "No JWT secret provided")
@@ -176,6 +177,8 @@ class AuthManager:
176
177
  raise AuthError('Invalid OAuth provider', 400)
177
178
 
178
179
  redirect_uri = url_for('auth.oauth_callback', _external=True)
180
+ logger.info("REDIRECT URI: {}".format(redirect_uri))
181
+ redirect_uri = redirect_uri.replace("http://", "https://")
179
182
  return jsonify({
180
183
  'redirect_url': self._get_oauth_url(provider, redirect_uri)
181
184
  })
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: the37lab_authlib
3
- Version: 0.1.1749238112
3
+ Version: 0.1.1749243221
4
4
  Summary: Python SDK for the Authlib
5
5
  Author-email: the37lab <info@the37lab.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,10 +1,10 @@
1
1
  the37lab_authlib/__init__.py,sha256=QxIyIyb-b2C91a9vSE05cFov-MFwprBnPLUTCz1rAGo,136
2
- the37lab_authlib/auth.py,sha256=iJHQJDyrQSimkxnG8qbj8lYLu8MJc8kSZx9mpv6H2wQ,20894
2
+ the37lab_authlib/auth.py,sha256=yIEFg6DOGcqz5Jr3Ok4XMAefPDMIVj5MOjMuTd3_PIs,21130
3
3
  the37lab_authlib/db.py,sha256=iXA8kPAZ2SCZgXtrfNIoCnkDwm5W-Cl2MvT1X6ulwqY,2807
4
4
  the37lab_authlib/decorators.py,sha256=UaBPvMnOcNnYI8VdkXtKWHRBAVJ8yCb6ZhQCBUCgmE4,1249
5
5
  the37lab_authlib/exceptions.py,sha256=ONA64ktHAuj4w0ur4xUeWZQQmfZw9hHo4che1Bi-M3s,327
6
6
  the37lab_authlib/models.py,sha256=9-9ndGq-o9VGjHF8VvgMHvjhYOEapfOkocfjpqEFHY4,3516
7
- the37lab_authlib-0.1.1749238112.dist-info/METADATA,sha256=UoWOf36gkcshGRERZA5ll3bPYxchbTQYppSLOpFnOyk,2711
8
- the37lab_authlib-0.1.1749238112.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- the37lab_authlib-0.1.1749238112.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
10
- the37lab_authlib-0.1.1749238112.dist-info/RECORD,,
7
+ the37lab_authlib-0.1.1749243221.dist-info/METADATA,sha256=yJzWe5bQZMVy5UpqerQekDxafABPnkVdUTXjKZ9yXlw,2711
8
+ the37lab_authlib-0.1.1749243221.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ the37lab_authlib-0.1.1749243221.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
10
+ the37lab_authlib-0.1.1749243221.dist-info/RECORD,,