A tool for acquiring refresh token of Microsoft Graph API
- Register an app in App registrations of Azure Active Directory
- Set redirect URI to
http://localhost:5000/getAToken
- On the Certificates & secrets page, create a new Client Secret
- Note down Application(client) ID and Client Secret
- Grant API permissions: Files.Read, Files.ReadWrite
pip install -r requirements.txt
python start.py
- Follow the instructions, complete the authorization in your browser
- If succeeds, your refresh token will be displayed on the final page