https://gallery.technet.microsoft.com/office/Configure-OAuth-between-5705f1ac