Don't return internal error details in bulk member responses; gate SSO token logging (#7777)

This commit is contained in:
Tauan BF authored and GitHub committed 2026-10-29 22:22:12 +01:00
1 parent 80d1859452
commit be5d3ad907
2 files changed
+25 -6

No files matched your search

+5 -1
View File
@@ -309,7 +309,11 @@ pub async fn exchange_code(
user_name: user_name.clone(),
};
debug!("Authenticated user {authenticated_user:?}");
if CONFIG.sso_debug_tokens() {
debug!("Authenticated user {authenticated_user:?}");
} else {
debug!("Authenticated user {identifier}");
}
sso_auth.auth_response = Some(authenticated_user.clone());
sso_auth.updated_at = Utc::now().naive_utc();
sso_auth.save(conn).await?;