![]() ![]() ![]() There must be a programmatic way to do this, but I had no idea how to do it. Looks like to get a token for the first time we have to use a browser or emulate something like that. I did not create any Certificate or Secret.The offline_access is to be able to get the refresh token, which will be crucial to keep the app running without asking the user to login. I added User.Read, Files.ReadWrite and offline_access. In the section API permissions, you have to add all the permissions that your app will use.You can use your own, I chose one of the suggested: In the section Authentication, click Add a Platform and choose Desktop + devices.In the application details, in the section Overview, take note of the Application (client) ID.In Redirect URI, choose Public client/native.In Supported account types, choose the one that has personal Microsoft accounts.Azure Active Directory -> App Registrations -> Applications from personal account It's running automatically every hour and I don't need to touch it. ![]() I'm not sure if it's the best way but it is working now. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |