Resolve error "AADSTS50012: Invalid client secret is provided" in MS Flow's HTTP connector
I need to use HTTP connector in Microsoft Flow work flow to get the access token from SharePoint Online. I followed the article " Access SharePoint Online using Postman " to register the app and get the client id, client secret and tenant id. I composed the "body" section and added headers key to "HTTP" connector, and then submit the work flow by adding a new file to document library. However, it was failure with error "AADSTS50012: Invalid client secret is provided". Finally, I found out the issue is related to the none encode string of client secret value, and so I use "Variable" connector to save the client secret and other values, and used function "encodeUriComponent(...)" to encode the client secret value. The issue was gone and the HTTP call was successful to get the access token. The configuration of HTTP connector is as below screen shot. Courses for further study : Learn how to use Microsoft Flow and th...