diff options
| author | Frederick Muriuki Muriithi | 2026-08-31 11:07:11 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-08-31 11:07:11 -0500 |
| commit | 996fe2ac2149bc8dc1b9b06d0a81f6b43279e324 (patch) | |
| tree | aff17385469a9ccfd6bc80702c3b6b604667c951 | |
| parent | 894f169bfc4f9ca9746f93a7032687be8ac24f88 (diff) | |
| download | gn-auth-996fe2ac2149bc8dc1b9b06d0a81f6b43279e324.tar.gz | |
Bugfix: Use AUTH_DB rather than SQL_URI for SQLite connections.
| -rw-r--r-- | gn_auth/auth/authentication/oauth2/views.py | 4 |
1 files 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 |
