the37lab-authlib 0.1.1749278288__tar.gz → 0.1.1749279172__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.1749278288 → the37lab_authlib-0.1.1749279172}/PKG-INFO +1 -1
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/pyproject.toml +1 -1
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/auth.py +5 -2
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib.egg-info/PKG-INFO +1 -1
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/README.md +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/setup.cfg +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/__init__.py +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/db.py +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/decorators.py +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/exceptions.py +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/models.py +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib.egg-info/SOURCES.txt +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib.egg-info/dependency_links.txt +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib.egg-info/requires.txt +0 -0
- {the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/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.1749279172"
|
|
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.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/auth.py
RENAMED
|
@@ -460,6 +460,7 @@ class AuthManager:
|
|
|
460
460
|
client_id = self.oauth_config['google']['client_id']
|
|
461
461
|
client_secret = self.oauth_config['google']['client_secret']
|
|
462
462
|
redirect_uri = url_for('auth.oauth_callback', _external=True)
|
|
463
|
+
redirect_uri = redirect_uri.replace("http://", "https://")
|
|
463
464
|
|
|
464
465
|
# Exchange code for tokens
|
|
465
466
|
token_url = 'https://oauth2.googleapis.com/token'
|
|
@@ -498,10 +499,12 @@ class AuthManager:
|
|
|
498
499
|
id_generator=self.db.get_id_generator()
|
|
499
500
|
)
|
|
500
501
|
cur.execute("""
|
|
501
|
-
INSERT INTO users (
|
|
502
|
+
INSERT INTO users (username, email, real_name, created_at, updated_at)
|
|
502
503
|
VALUES (%s, %s, %s, %s, %s, %s)
|
|
503
|
-
|
|
504
|
+
RETURNING id
|
|
505
|
+
""", (user.username, user.email, user.real_name,
|
|
504
506
|
user.created_at, user.updated_at))
|
|
507
|
+
user.id = cur.fetchone()['id']
|
|
505
508
|
user = {'id': user.id, 'username': user.username, 'email': user.email,
|
|
506
509
|
'real_name': user.real_name, 'roles': []}
|
|
507
510
|
else:
|
|
File without changes
|
|
File without changes
|
{the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/__init__.py
RENAMED
|
File without changes
|
{the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/db.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{the37lab_authlib-0.1.1749278288 → the37lab_authlib-0.1.1749279172}/src/the37lab_authlib/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|