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

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


The following commit(s) were added to refs/heads/camel-4.8.x by this push:
     new f12be1ce7be Fix wrong FQN class name
f12be1ce7be is described below

commit f12be1ce7bedeca8e7d5ef62ab66c4ea4af2134b
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Jan 28 19:39:28 2025 +0100

    Fix wrong FQN class name
---
 .../src/main/docs/mail-microsoft-oauth.adoc            | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

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 4f9bbea5a44..975bf85a223 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
@@ -19,14 +19,14 @@ Maven users will need to add the following dependency to 
their `pom.xml`
 for this component:
 
 [source,xml]
-------------------------------------------------------------
+----
 <dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-mail-microsoft-oauth</artifactId>
     <version>x.x.x</version>
     <!-- use the same version as your Camel core version -->
 </dependency>
-------------------------------------------------------------
+----
 
 Importing `camel-mail-microsoft-oauth` it will automatically import the 
camel-mail component.
 
@@ -35,26 +35,28 @@ Importing `camel-mail-microsoft-oauth` it will 
automatically import the camel-ma
 === Microsoft Exchange Online OAuth2 Mail Authenticator IMAP example
 
 To use OAuth, an application must be registered with Azure Active Directory.
+
 Follow the instructions listed in 
https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app[Register
 an application with the Microsoft identity platform] guide to register a new 
application. +
 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.MicrosoftExchangeOnlineOAuth2MailAuthenticator`.
+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:
 
 [source,java]
----------------------------------------------------------------------------------
+----
 @BindToRegistry("auth")
 public MicrosoftExchangeOnlineOAuth2MailAuthenticator exchangeAuthenticator(){
     return new MicrosoftExchangeOnlineOAuth2MailAuthenticator(tenantId, 
clientId, clientSecret, "[email protected]");
 }
----------------------------------------------------------------------------------
+----
 
-and then reference it in the Camel URI:
+and then reference it in the Camel endpoint:
 
 [source,java]
----------------------------------------------------------------------------------------
+----
  from("imaps://outlook.office365.com:993"
                     +  "?authenticator=#auth"
                     +  "&mail.imaps.auth.mechanisms=XOAUTH2"
                     +  "&debugMode=true"
                     +  "&delete=false")
----------------------------------------------------------------------------------------
+----

Reply via email to