none
OneDrive API with OAuth2 for Asp.net application RRS feed

  • General discussion

  • I have a requirement from customer where the application (Asp.net + C#.net) should able to upload or download the files pragmatically with out asking for sign in . For which, I need a right OneDrive API that supports OAuth2. Thanks in advance.
    • Moved by CoolDadTx Tuesday, April 10, 2018 5:18 PM ASP.NET related
    Monday, April 9, 2018 5:48 PM

All replies

  • Asp.net can be addressed at the ASP.NET forums. 

    http://forums.asp.net/

    Did you notice the sign post topic at the top of the C# forum about where to post ASP.NET issues? I am just curious about did even notice it. 

    Monday, April 9, 2018 6:16 PM
  • There is not chance to send username and password directly to authentication server. Page with login form is send by authentication server to you and you have to show it to user which fill username and password and send it back to authentication server. Authentication server send result of user authentication back to your application.

    You can use refresh token by selected offline access scope. This token has long expiration time (I think 3 months). But you need log into first and then again when refresh token expires. 

    I wrote Windows Live Framework, it is easy to connect into OneDrive and manage login form. 

    https://www.nuget.org/packages/WLive/

    Monday, April 9, 2018 8:14 PM