the37lab-authlib 0.1.1756730814__tar.gz → 0.1.1756739540__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.
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/PKG-INFO +1 -1
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/pyproject.toml +1 -1
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/auth.py +3 -1
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib.egg-info/PKG-INFO +1 -1
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/README.md +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/setup.cfg +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/__init__.py +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/db.py +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/decorators.py +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/exceptions.py +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/models.py +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib.egg-info/SOURCES.txt +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib.egg-info/dependency_links.txt +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib.egg-info/requires.txt +0 -0
- {the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "the37lab_authlib"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1756739540"
|
|
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"]
|
{the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/auth.py
RENAMED
|
@@ -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):
|
|
File without changes
|
|
File without changes
|
{the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/__init__.py
RENAMED
|
File without changes
|
{the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/db.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{the37lab_authlib-0.1.1756730814 → the37lab_authlib-0.1.1756739540}/src/the37lab_authlib/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|