Giter VIP home page Giter VIP logo

o365_adal_oauth's Introduction

O365 ADAl Oauth

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.

O365 User Operation

  • Retrieve User List

Outlook Operation

  • Create Calendar Events
  • Edit Existing Calendar Events
  • Delete Calendar Events
  • Retrieve Calendar Events

SharePoint Operation

  • Upload a File
  • Download a File
  • Copy File(between libraries)
  • Delete File
  • Get All File Names and Folder Names
  • Create Folder

Register an app on Azure

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.

Set permission

You will need to set the following permission in your Azure app.

Permission

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.

Using this application

To build and start using this application, follow below mentioned instructions.

  1. Clone this repository by executing the following command in your console:
git clone https://github.com/utkarshdubeyfsd/o365_ADAL_oAuth.git
  1. 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
  2. Update details on appsettings.json file like ClientId, ClientSecret and etc.
  3. Execute the application

Output

This is how the application will look like.

Output

No Word, Only Work

o365_adal_oauth's People

Contributors

utkarshdubeyfsd avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.