This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 810634b8501 CAMEL-22473 - added quarkus example to mail-microsoft-oath 
doc (#19372)
810634b8501 is described below

commit 810634b8501e7c11b45e0cb2aa9ecff7f5cf8fd7
Author: JiriOndrusek <[email protected]>
AuthorDate: Tue Sep 30 15:09:59 2025 +0200

    CAMEL-22473 - added quarkus example to mail-microsoft-oath doc (#19372)
---
 .../src/main/docs/mail-microsoft-oauth.adoc              | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-mail-microsoft-oauth/src/main/docs/mail-microsoft-oauth.adoc 
b/components/camel-mail-microsoft-oauth/src/main/docs/mail-microsoft-oauth.adoc
index 8b55ccd3e1d..3f7aa52ffb7 100644
--- 
a/components/camel-mail-microsoft-oauth/src/main/docs/mail-microsoft-oauth.adoc
+++ 
b/components/camel-mail-microsoft-oauth/src/main/docs/mail-microsoft-oauth.adoc
@@ -44,7 +44,21 @@ Follow the instructions listed in 
https://learn.microsoft.com/en-us/azure/active
 Enable application to access Exchange mailboxes via client credentials flow. 
Instructions 
https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth[here]
 +
 Once everything is set up, declare and register in the registry, an instance 
of 
`org.apache.camel.component.mail.microsoft.authenticator.MicrosoftExchangeOnlineOAuth2MailAuthenticator`.
 
-For example, in a Spring Boot application:
+For example,
+
+* in a Quarkus application:
+
+[source,java]
+----
[email protected]
+@Named("auth")
+public MicrosoftExchangeOnlineOAuth2MailAuthenticator exchangeAuthenticator() {
+    return new MicrosoftExchangeOnlineOAuth2MailAuthenticator(tenantId.get(), 
clientId.get(), clientSecret.get(),
+            username.get());
+}
+----
+
+* in a Spring Boot application:
 
 [source,java]
 ----

Reply via email to