c# - Is there a simple way to authenticate WPF Desktop application with Office 365 API? -


i want create simple wpf desktop or console application retrieves , shows data office 365 contacts api.

i have azure ad , office 365 accounts. i've read documentation , seen lot of samples. asp.net , windows 8.1 , other types of application. used owin or build-in authentication calls(for windows 8.1).

i think should this:

  1. user presses button
  2. my application calls method "some microsoft library" , passes client_id parameter. call open new browser window suggestion user login. user logs in , agrees provide access contacts.
  3. as result of call should receive access token
  4. be happy , read contacts using microsoft.ofiice365.outlookservices.

i'm stuck @ second point of idea - "some microsoft library". can suggest library should use? exist?

if not work in way, can suggest other way retrieve contacts office 365 in wpf desktop or console application?

i'm trying find like this, works wiht contacts api (not 1 drive) , not require me define special browserwindow in xaml or c#. way exist? or should implement functionality myself?

additionally use office 365 rest api, not ews.

yes, can windows app. i'd recommend using adal authentication. should provide browser window signin process. can use visual studio office 365 tools register app , libraries calling contacts api.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -