Skip to content

Commit c592d76

Browse files
Potential fix for pull request finding 'CodeQL / Information exposure through an exception'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent a1f3d76 commit c592d76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/app_oidc_mfa_sample_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def callback():
113113
client_secret=CLIENT_SECRET,
114114
redirect_uri=CALLBACK_URL,
115115
)
116-
except AuthException as e:
117-
return f"MFA exchange failed: {e}", 401
116+
except AuthException:
117+
return "MFA exchange failed", 401
118118

119119
# tokens is the raw OIDC shape: access_token, id_token, refresh_token, expires_in, scope.
120120
# Treating a successful exchange as "MFA passed" - wire this into your own session logic

0 commit comments

Comments
 (0)