the37lab-authlib 0.1.1749278288__py3-none-any.whl → 0.1.1749279172__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 +5 -2
- {the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/METADATA +1 -1
- {the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/RECORD +5 -5
- {the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/WHEEL +0 -0
- {the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/top_level.txt +0 -0
the37lab_authlib/auth.py
CHANGED
|
@@ -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:
|
{the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/RECORD
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
the37lab_authlib/__init__.py,sha256=QxIyIyb-b2C91a9vSE05cFov-MFwprBnPLUTCz1rAGo,136
|
|
2
|
-
the37lab_authlib/auth.py,sha256=
|
|
2
|
+
the37lab_authlib/auth.py,sha256=ujJhXudha7w7hOE6uzWi1RELTSRQxa1zcUrZGoEyoUk,21433
|
|
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.
|
|
8
|
-
the37lab_authlib-0.1.
|
|
9
|
-
the37lab_authlib-0.1.
|
|
10
|
-
the37lab_authlib-0.1.
|
|
7
|
+
the37lab_authlib-0.1.1749279172.dist-info/METADATA,sha256=PFAZ0SLzOE-ArV6W8KwIUp8PPFU2T-z5AZVIDBOLWeE,2711
|
|
8
|
+
the37lab_authlib-0.1.1749279172.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
the37lab_authlib-0.1.1749279172.dist-info/top_level.txt,sha256=6Jmxw4UeLrhfJXgRKbXWY4OhxRSaMs0dKKhNCGWWSwc,17
|
|
10
|
+
the37lab_authlib-0.1.1749279172.dist-info/RECORD,,
|
{the37lab_authlib-0.1.1749278288.dist-info → the37lab_authlib-0.1.1749279172.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|