-
Notifications
You must be signed in to change notification settings - Fork 78
How to create your own application to use with onedrivecmd
WARNING: For Office 365 users: An Admin MUST EXIST in order to get authorization code!
Since Microsoft's documentations are just...... not made for human beings, you probably want to follow this instruction.
This is quite easy.
- Go to https://apps.dev.microsoft.com/ , login.
- Add an app, make a name and continue.
- The "Application Id" is the "client_id_normal" in static.py.
- Create a password. This is the "client_secret_normal".
- Add web platform.
Set the "redirect_uri" to the URL you like. You can still use https://od.cnbeining.com , or just fork [https://github.com/cnbeining/onedrivecmd/tree/gh-pages](that branch) and make your own URL.
- Add Application permissions.
Now you are all set.
This is f**king tricky, for I spent a whole day trying to squeeze a way between the documentations, 4 control panels, 4 API endpoints and 3 different SDKs. (One is not even importable!)
- Make sure you have one of the following:
- An MSDN subscription
- An existing Office 365 subscription
- Free trial
- annual developer subscription for $99.00 per year
and you are the admin of the group.
-
Sign up a Azure account at https://account.windowsazure.com/SignUp . You do not need to have a credit card.
-
Login to the portal at https://portal.azure.com/ .
-
Fine Azure AD.
- Create an application.
- Add an application.
- Add some permissions:
- Create secret key.
Change the values in static.py
.
Now you can login with Office 365 accounts.