It is a console application built on .NET Framework. Which will first do authentication via Graph API and then acquire a Token.
This is the list of operation which you can perform using this console application.
- Retrieve User List
- Create Calendar Events
- Edit Existing Calendar Events
- Delete Calendar Events
- Retrieve Calendar Events
- Upload a File
- Download a File
- Copy File(between libraries)
- Delete File
- Get All File Names and Folder Names
- Create Folder
Register an app using Register an application with the Microsoft identity platform article. After that, you need to acquire Client ID, Client Secret, and Tenant ID.
You will need to set the following permission in your Azure app.
After setting up an application and applying for permission, In my case, it took 1 day for the application to run. Otherwise, it shows the Token failed to acquire.
To build and start using this application, follow below mentioned instructions.
- Clone this repository by executing the following command in your console:
git clone https://github.com/utkarshdubeyfsd/o365_ADAL_oAuth.git
- Install all the packages from NuGet
- Microsoft.Extension.Configuration
- Microsoft.Extension.Configuration.Binder
- Microsoft.Extension.Configuration.Json
- Microsoft.Graph
- Microsoft.Identity.Client
- Microsoft.NETCore.App
- Newtonsoft.Json
- Syroot.Windows.IO.KnownFolders
- Update details on appsettings.json file like
ClientId
,ClientSecret
and etc. - Execute the application
This is how the application will look like.
No Word, Only Work