Microsoft 365 user sync: import, roles, profile fields, deprovisioning #1

Open
friloo wants to merge 11 commits from feature/user-sync into claude/modest-hypatia-2gfg7m
Showing only changes of commit 5c9b19399a - Show all commits

View file

@ -796,6 +796,17 @@ class M365_Login_Auth {
); );
} }
/**
* Writes a diagnostic line to the debug log (only with WP_DEBUG and WP_DEBUG_LOG; never tokens or secrets).
*
* @param string $message Message.
*/
private function log( $message ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG && defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
error_log( '[M365 Login] ' . $message ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
}
}
/** /**
* Aborts the flow and shows a generic error on the login screen. * Aborts the flow and shows a generic error on the login screen.
* *