Hello,
I would like to create a “proxy” application with Visual Studio 2015 (C#) able to get Access & Refresh Token from the follow endpoints (resource=https%3A%2F%2Fgraph.microsoft.com)
Auth: https://login.microsoftonline.com/[TenantID]/oauth2/authorize?resource=https%3A%2F%2Fgraph.microsoft.com
Token: https://login.microsoftonline.com/[TenantID]/oauth2/token
I have already configured the App on my Azure portal and tested with Postman, grant_type = Authorization Code (see picture) and it works ! For using Microsoft Open Graph for Planner API I need to get access as delegate user … so Postman asked me for inserting “user & pass” credentials and after 3600 sec. it ask me to refresh the token again. This is the same behavior I would like to replicate on my “proxy” application, avoid for requesting me to insert credentials anytime because is not a GUI application.
It has to act like a “proxy” between a frontend who will send REST call to my “proxy” and MS Open Graph API which will get back response.
Could you please suggest me which is framework / packages (Owi, DotNetOpenAuth, simple HttpWebRequest, others) better for my specific case and a valid step by step tutorial ?
Thanks.
R. Marco.
Marco