the37lab-authlib 0.1.1756730814__py3-none-any.whl → 0.1.1756739540__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
@@ -291,6 +291,8 @@ class AuthManager:
291
291
  def oauth_login():
292
292
  provider = request.json.get('provider')
293
293
  if provider not in self.oauth_config:
294
+ logger.error(f"Invalid OAuth provider: {provider}")
295
+ logger.error(f"These are the known ones: {self.oauth_config.keys()}")
294
296
  raise AuthError('Invalid OAuth provider', 400)
295
297
 
296
298
  redirect_uri = self.get_redirect_uri()
@@ -828,7 +830,7 @@ class AuthManager:
828
830
  }
829
831
  }
830
832
  if provider not in providers:
831
- raise AuthError('Invalid OAuth provider')
833
+ raise AuthError('Invalid OAuth provider ' + provider)
832
834
  return providers[provider]
833
835
 
834
836
  def _normalize_userinfo(self, provider, info):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: the37lab_authlib
3
- Version: 0.1.1756730814
3
+ Version: 0.1.1756739540
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=cFVTWL-0YIMqwOMVy1P8mOt_bQODJp-L9bfp2QQ8CTo,132
2
- the37lab_authlib/auth.py,sha256=PQeElcWKNd2TP1-0J4z1jRDafW_izjJxXPkUvgGfPcE,36371
2
+ the37lab_authlib/auth.py,sha256=w3Fy4Ovc05Dia9sXRLahoLE4UKdB2-k4cHJZyS6gYbE,36537
3
3
  the37lab_authlib/db.py,sha256=cmnmykKvq6V5e-D0HGiRN4DjFBOGB-SL1HpFjR5uyCw,3162
4
4
  the37lab_authlib/decorators.py,sha256=L-gJUUwDUT2JXTptQ6XEey1LkI5RprbqzEfArWI7F8Y,1305
5
5
  the37lab_authlib/exceptions.py,sha256=mdplK5sKNtagPAzSGq5NGsrQ4r-k03DKJBKx6myWwZc,317
6
6
  the37lab_authlib/models.py,sha256=-PlvQlHGIsSdrH0H9Cdh_vTPlltGV8G1Z1mmGQvAg9Y,3422
7
- the37lab_authlib-0.1.1756730814.dist-info/METADATA,sha256=oYK4nVR2RMVbLDUEaO8rB1JUWSCg7zte6_bQOMKN7IU,8319
8
- the37lab_authlib-0.1.1756730814.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- the37lab_authlib-0.1.1756730814.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
10
- the37lab_authlib-0.1.1756730814.dist-info/RECORD,,
7
+ the37lab_authlib-0.1.1756739540.dist-info/METADATA,sha256=e2cZkPO6aEHVKFNh2szejowgOV1f9IgIwvfvuI-0cyo,8319
8
+ the37lab_authlib-0.1.1756739540.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ the37lab_authlib-0.1.1756739540.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
10
+ the37lab_authlib-0.1.1756739540.dist-info/RECORD,,