aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-14 17:15:50 +0300
committerMunyoki Kilyungi2024-03-21 10:03:33 +0300
commit72e46bb93d48fae787f0e23b101cebfd4ab51d13 (patch)
treedf78040c4d9f420de95bf5b06034ba8388bdc3af /gn_auth/auth/authentication/oauth2
parent45578b7c355ea9033a1f0ca85fe6ec382289b879 (diff)
downloadgn-auth-72e46bb93d48fae787f0e23b101cebfd4ab51d13.tar.gz
Rename the_user -> _user.
* gn_auth/auth/authentication/oauth2/models/oauth2client.py (client): Rename the_user -> _user. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authentication/oauth2')
-rw-r--r--gn_auth/auth/authentication/oauth2/models/oauth2client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gn_auth/auth/authentication/oauth2/models/oauth2client.py b/gn_auth/auth/authentication/oauth2/models/oauth2client.py
index 1ea7b06..98c3001 100644
--- a/gn_auth/auth/authentication/oauth2/models/oauth2client.py
+++ b/gn_auth/auth/authentication/oauth2/models/oauth2client.py
@@ -148,13 +148,13 @@ def client(conn: db.DbConnection, client_id: UUID,
"SELECT * FROM oauth2_clients WHERE client_id=?",
(str(client_id),))
result = cursor.fetchone()
- the_user = user
+ _user = user
if result:
- if not bool(the_user):
+ if not bool(_user):
try:
- the_user = user_by_id(conn, result["user_id"])
+ _user = user_by_id(conn, result["user_id"])
except NotFoundError:
- the_user = None
+ _user = None
return Just(
OAuth2Client(
@@ -167,7 +167,7 @@ def client(conn: db.DbConnection, client_id: UUID,
result["client_secret_expires_at"]
),
client_metadata=json.loads(result["client_metadata"]),
- user=the_user) # type: ignore[arg-type]
+ user=_user) # type: ignore[arg-type]
)
return Nothing