Expand my Community achievements bar.

Not able to configuring OAuth2 Support for the Mail Service

Avatar

Level 2

Hi All, 

  

 After following all the steps defined in the following url : https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/security/oauth2-sup...
I am not able to receive any email for Office365. Access token is also generated. 
Can anyone try to help me resolve this. Is this the only process to be followed or after generating the access token any other steps need to be followed in order to get the Email ?




Thank you.



2 Replies

Avatar

Community Advisor

 Validate both the accessToken and refreshToken using the curl command.

 

Avatar

Level 1

@khasinaparveen - Were you able to resolve this problem. We are also facing same issue and not able to send email.

[EMailNotificationService-Processor] com.day.cq.mailer.oauth.impl.OAuthCodeServiceImpl error occurred while fetching accessToken using RefreshToken org.apache.oltu.oauth2.common.exception.OAuthProblemException: invalid_grant, AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: 705e2a15-bc3f-4197-859a-6ea588ed0400 Correlation ID: b15f603e-dce5-49ec-883e-fe1dc5d2f633 Timestamp: 2024-01-29 18:42:29Z, https://login.microsoftonline.com/error?code=9002313