App to get Refresh Token from Microsoft SharePoint.
- Register your app in SharePoint by Navigate to https://your_site_name.com/your-sub-site/_layouts/15/appregnew.aspx
- The redirect URL must be https://localhost:8443/spOAuth/callback.jsp
- Save Client ID & Client Secret.
- Download zip from https://raw.githubusercontent.com/ArjunZe/spOAuth/master/SpOAuth.zip
- Extract the zip.
- Double Click Start.bat.
- Open https://localhost:8443/spOAuth/ in browser.
- Fill in Site Name, Sub Site, Client Id and Scope & Click Authorize.
- Refer scopes -https://spshell.blogspot.com/2015/03/sharepoint-online-o365-oauth.html
- It will launch to SharePoint, then login and click trust it.
- Once Redirected back to https://localhost:8443/spOAuth/callback.jsp, fill in Client Id, Client Secret, Site Name and Click Generate.
- Once Generated, Click Copy.