Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication in Windows Service c# #43

Open
Srusti-Thakkar opened this issue Feb 24, 2017 · 2 comments
Open

Authentication in Windows Service c# #43

Srusti-Thakkar opened this issue Feb 24, 2017 · 2 comments

Comments

@Srusti-Thakkar
Copy link

I want to create windows service using c# for sync local directory with OneDrive. How to authenticate user in Windows Service and pass token to send request?

@daboxu
Copy link
Contributor

daboxu commented Feb 27, 2017

hi @Srusti-Thakkar , you can see my example for ASP .NET web service: #21. The basically idea is implements the IAuthProvider interface from Microsoft.Graph.Core which you can pass in your access token.

@toper
Copy link

toper commented Nov 25, 2018

But Windows Service - does not have WebBrowser. Is it posible to authenticate in OneDrive from Windows Service or ConsoleApp ? There is no GUI for user. It's work automaticly in background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants