ms-graph-connector-oauth-2-0
Reactive icon

MS Graph Connector & Oauth 2.0

Stable version 0.1.0 (Compatible with OutSystems 11)
Uploaded
 on 29 February 2020
 by 
0.0
 (0 ratings)
ms-graph-connector-oauth-2-0

MS Graph Connector & Oauth 2.0

Details
Using Azure Portal, MS Graph API and OAuth 2.0 endpoints to send an email from a functional email. For example, no-reply@example.com.
Read more

A simple component to send email from application as a functional user. For example, sometimes it will be required to send email from application to the recipients with the sender email as "no-reply@example.com". 

To achieve this using Azure and MS Graph API, first we need to register an application in Azure AD. Please refer the below URL to know how to do this.

https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/howto-configure-prerequisites-for-reporting-api

Make sure "Mail.Send" API has been granted from MS Graph category in Request API Permissions page.

Steps to configure the credentials:

  • Once the app is registered successfully, copy Client Id, generate/copy Client Secret and Tenant Id
  • Open Core module
  • Go to Data tab -> Site Properties
  • Click on "AppClientId" and in the property window "Default Value" replace the copied cliend id from Azure
  • Repeat this step for Client Secret (AppClientSecret) and Tenant Id (AppTenant)
  • For FunctionalEmail property, replace the functional email configure in the Tenant in Azure
  • Publish the module
  • Update the dependency in demo app


Hurray!!! it's time to test the app :)

Note: This is a sample app done as part of my learning, so there may not be standard conventions followed for variable names, exception handling, etc. Please feel free to post your feedback so I will try to update in the next versions.

Release notes (0.1.0)
Reviews (0)
Team
Other assets in this category