aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-12 00:40:10 +0300
committerMunyoki Kilyungi2024-03-13 15:34:52 +0300
commit58fde0def491099d3833e3d58ec7c441d84d1ef2 (patch)
tree2a2c2d25bd3e21e90345486307ed6a44cb6af8c8 /gn_auth/auth/authentication/oauth2
parent865c3b2683c1697981989edde69558103115db7d (diff)
downloadgn-auth-58fde0def491099d3833e3d58ec7c441d84d1ef2.tar.gz
Rename "the_client" to "_client".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authentication/oauth2')
-rw-r--r--gn_auth/auth/authentication/oauth2/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/auth/authentication/oauth2/server.py b/gn_auth/auth/authentication/oauth2/server.py
index 12366a6..efadc51 100644
--- a/gn_auth/auth/authentication/oauth2/server.py
+++ b/gn_auth/auth/authentication/oauth2/server.py
@@ -25,10 +25,10 @@ def create_query_client_func() -> Callable:
# use current_app rather than passing the db_uri to avoid issues
# when config changes, e.g. while testing.
with db.connection(current_app.config["AUTH_DB"]) as conn:
- the_client = client(conn, client_id).maybe(
+ _client = client(conn, client_id).maybe(
None, lambda clt: clt) # type: ignore[misc]
- if bool(the_client):
- return the_client
+ if bool(_client):
+ return _client
raise InvalidClientError(
"No client found for the given CLIENT_ID and CLIENT_SECRET.")