@Override
    public void customize(final JavaMailSender mailSender, final EmailMessageRequest messageRequest) {
        val microsoft = casProperties.getEmailProvider().getMicrosoft();
        if (microsoft.isDefined() && mailSender instanceof JavaMailSenderImpl impl) {
            val accessToken = fetchAccessToken();
            LOGGER.debug("Setting accessToken as the password: [{}]", accessToken);
            impl.setPassword(accessToken);
        }
    }
This is {@link MicrosoftEmailSenderCustomizer}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-mail-microsoft/src/main/java/org/apereo/cas/mail/MicrosoftEmailSenderCustomizer.java