cancel
Showing results for 
Search instead for 
Did you mean: 

EWS / OAuth2

Graeme__Tacon
Level 6
Has anyone managed to get Blue Prism to access Exchange Web Services (EWS) using OAuth2 ?
Basic Authentication is being removed from EWS next year, replaced with OAuth2, so trying to get ahead of the game and hoping someone else has already got this to work and can point me in the right direction.

------------------------------
Graeme Tacon
Automation Developer
Aviva plc
Europe/London
------------------------------
4 REPLIES 4

AndreyKudinov
Level 10
FYI "These plans apply only to the cloud-based Office 365/Exchange Online products; there are no changes to EWS capabilities of on-premises Exchange products."



------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

JerinJose
Level 10
Hi Graeme,

We have created an Object for EWS with Oauth2 authentication. i'm afraid the object cannot be sharedhere
following steps were taken
1.you need an azure ad native application to be registered with delegated permissions to ews api 
2. create a console app to sign in and generate token

https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth

However, I would recommend you to explore on MS Graph API for email sending activities if you really want to be future ready.

 

Microsoft Guidance on Application Registration:

https://docs.microsoft.com/en-us/graph/auth-register-app-v2

 

Application Authentication basics for Microsoft Graph:

https://docs.microsoft.com/en-us/graph/auth/auth-concepts

 

Using GraphAPI with oAuth

https://docs.microsoft.com/en-us/graph/auth/auth-concepts#next-steps

 



------------------------------
Jerin Jose
RPA Product SME
EY
Asia/Kolkata
*"If you find this post helpful, please press the "Recommend" Button.*
------------------------------

Hey Graeme,

If you were to use the "Azure AD Certificate based auth" skill available on the Digital exchange, you can enable an OAuth2.0 authentication and get a token back. THis can help you work with pretty much anything on 0365 or Azure. Hope this helps.
Let me know if you have any questions on doing this.

------------------------------
Bimal Sebastian
Consultant
Blueprism
Asia/Kolkata
------------------------------

Everyone,

For those interested to look at the skill I mentioned, follow this link
https://digitalexchange.blueprism.com/dx/entry/3439/solution/azure-ad-auth-certificate-based

------------------------------
Bimal Sebastian
Consultant
Blueprism
Asia/Kolkata
------------------------------