From 996fe2ac2149bc8dc1b9b06d0a81f6b43279e324 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 31 Aug 2026 11:07:11 -0500 Subject: Bugfix: Use AUTH_DB rather than SQL_URI for SQLite connections. --- gn_auth/auth/authentication/oauth2/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gn_auth/auth/authentication/oauth2/views.py b/gn_auth/auth/authentication/oauth2/views.py index e26fc95..f73a712 100644 --- a/gn_auth/auth/authentication/oauth2/views.py +++ b/gn_auth/auth/authentication/oauth2/views.py @@ -68,7 +68,7 @@ def authorise(): redirect_uri=request.args["redirect_uri"], source_uri=f"{_src.scheme}://{_src.netloc}/", display_forgot_password=with_db_connection( - app.config["SQL_URI"], + app.config["AUTH_DB"], __forgot_password_table_exists__)) form = request.form @@ -103,7 +103,7 @@ def authorise(): flash(email_passwd_msg, "alert alert-danger") return redirect_response # type: ignore[return-value] - return with_db_connection(app.config["SQL_URI"], __authorise__) + return with_db_connection(app.config["AUTH_DB"], __authorise__) except InvalidClientError as ice: return render_template( "oauth2/oauth2_error.html", error=ice), ice.status_code -- cgit 1.4.1