diff --git a/starpunk/auth.py b/starpunk/auth.py index 78f91c0..876b9c6 100644 --- a/starpunk/auth.py +++ b/starpunk/auth.py @@ -356,6 +356,13 @@ def initiate_login(me_url: str) -> str: # CORRECT ENDPOINT: /authorize (not /auth) auth_url = f"{current_app.config['INDIELOGIN_URL']}/authorize?{urlencode(params)}" + # Log the complete authorization URL for debugging + current_app.logger.debug( + "Auth: Complete authorization URL (GET request):\n" + " %s", + auth_url + ) + current_app.logger.info(f"Auth: Authentication initiated for {me_url}") return auth_url