Browse Source

Log SSO tokens of the authenticated user only with SSO_DEBUG_TOKENS

pull/7777/head
Tauan BF 3 weeks ago
parent
commit
e2b12e5683
  1. 6
      src/sso.rs

6
src/sso.rs

@ -307,7 +307,11 @@ pub async fn exchange_code(
user_name: user_name.clone(), 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.auth_response = Some(authenticated_user.clone());
sso_auth.updated_at = Utc::now().naive_utc(); sso_auth.updated_at = Utc::now().naive_utc();
sso_auth.save(conn).await?; sso_auth.save(conn).await?;

Loading…
Cancel
Save