Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

VIDEO – AngularJS SPA and WebAPI SQL database secured with Azure AD – MS FLOW EMAIL(Part 3 of 3)

Continuing series with more detail on security.   Add MS Flow to read REST API data with Azure AD token.     MS Flow acts as HTTP client same as end user web browser.   MS Flow can execute HTTP POST pair to first download Access Token and then retrieve HTTP JSON data with Azure AD “Bearer” token.   Chrome F12 and Postman are essential tools for mapping out HTTP POST format with headers, body, and expected JSON reply schema.

When complete, we have daily MS Flow scheduled email which downloads JSON from WebAPI via secure AzureAD token.  Great way to protect API endpoints and provide rich email features.  Cheers.  

shades_smile_thumb_thumb[1]

This post is part of series with three posts:

Code

HTTP POST

https://login.microsoftonline.com/spjeff.onmicrosoft.com/oauth2/token

grant_type=client_credentials
&client_id=APP_ID_HERE
&client_secret=APP_SECRET_HERE
&resource=APP_ID_HERE

Video

Screenshots

image
image
image

References

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲