SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP Mail Destination Configuration with OAuth2ClientCredentials

michabaer
Explorer
0 Kudos

Hello all,

I would like to set up the email functionality for SAP Build Process Automation.

There are two ways how to set up the mail destination. Either with BasicAuthentication or OAuth2Password.
see Configure an SMTP Mail Destination | SAP Help Portal
But as long as you need the user and password for both methods, is it a secured approach?
Also many internet blogs describe to avoid these authentication methods in general.
However, the OAuth2ClientCredentials method is the one that companies are asking for.
Are there any ways to use this method?

Thank you very much for your help and best regards!

2 REPLIES 2

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @michabaer,

OAuth2Password is meant for the same where you do not have to specify the user name and password and it works with client ID and secret. It is secure to use it, and we implemented this because most of mail provider like Microsoft Outlook were discouraging the use of Basic Auth. You can read more about the OAuth grant flow in different provider websites. Hope that helps! 

Archana_0-1690880686053.png

 

michabaer
Explorer
0 Kudos

Hello @Archana 

Thank you for this fast answer!

As I understand your message, it is possible to do it without username and password.
Sadly the fields are required for the Destination:

michabaer_0-1690906002407.png

And using the Authentication method OAuth2ClientCredentials is not supported by SPA.

michabaer_1-1690906110449.png

Do we need to deactivate it on provider site and enter some fake values into the username and password field of the destination?

Thanks for your help!