Digital Exchange

last person joined: 20 hours ago 

This community is a place to discuss the Blue Prism DX and all of the assets hosted there.
Expand all | Collapse all

EWS / OAuth2

  • 1.  EWS / OAuth2

    Posted 09-15-2020 04:11
    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
    ------------------------------


  • 2.  RE: EWS / OAuth2

    Posted 09-15-2020 08:59
    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
    ------------------------------



  • 3.  RE: EWS / OAuth2

    Posted 09-15-2020 10:32
    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.*
    ------------------------------



  • 4.  RE: EWS / OAuth2

    Posted 09-16-2020 08:44
    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
    ------------------------------



  • 5.  RE: EWS / OAuth2

    Posted 09-16-2020 11:19
    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
    ------------------------------