devdefined-oauth

Uploading file to Dropbox with Devdefined OAuth library

▼魔方 西西 提交于 2019-12-23 03:58:19
问题 I am trying to upload a file to the Dropbox REST web service while at the same time using Devdefined's OAuth library. This is the method I'm using: public static void UploadFile(string filenameIn, string directoryIn, byte[] dataIn) { DropBox.session.Request().Put().ForUrl("https://api-content.dropbox.com/1/files_put/" + directoryIn + filenameIn) .WithQueryParameters(new { param = dataIn }); } The method doesn't appear to do anything, nor throw any exceptions. There's no errors in the output

Recommended database structure for OAuth Provider

若如初见. 提交于 2019-12-18 10:16:16
问题 I am implementing an OAuth Provider using DevDefined library. I wonder if there is any recommended database structure for storing consumer and token data on the server side. Any advice on this would be appreciated. 回答1: NB: The answer below is applicable mostly to OAuth 1.0 I don't really know anything about the DevDefined library. But here is a non-technical description of the database design I ended up working with in my latest project, using an SQL database. It should cover everything

C# Closing a HttpWebRequest DevDefined

时间秒杀一切 提交于 2019-12-13 15:35:05
问题 I'm having a problem connecting to a 3rd party API using the DevDefined OAuth library for C#: https://github.com/bittercoder/DevDefined.OAuth The connection has been working fine for over a year now, but in the last two days it has started failing every few hours. The exception message is: The request was aborted: Could not create SSL/TLS secure channel It works as normal after the app pool has been restarted but then stops authenticating after a few hours - this makes me think that it is not

Google API/OAUTH/NativeApplicationClient/OAuth2Authenticator > Logout?

非 Y 不嫁゛ 提交于 2019-12-08 04:07:06
问题 I'm building a desktop app that connects to Googles APIs using OATH following the scheme found in this thread: Google API v3 for dotnet; using the calendar with an API key And all works fine. I have build a form that shows a WebBrowser to collect the authCode. But how do I implement "Logout"? Can't find any API functionality for this. 回答1: Niels, you can do the following things. Log the user out of Google in the WebBrowser control by going to this URL (https://accounts.google.com/Logout?hl=en

Uploading file to Dropbox with Devdefined OAuth library

无人久伴 提交于 2019-12-07 14:49:30
I am trying to upload a file to the Dropbox REST web service while at the same time using Devdefined's OAuth library. This is the method I'm using: public static void UploadFile(string filenameIn, string directoryIn, byte[] dataIn) { DropBox.session.Request().Put().ForUrl("https://api-content.dropbox.com/1/files_put/" + directoryIn + filenameIn) .WithQueryParameters(new { param = dataIn }); } The method doesn't appear to do anything, nor throw any exceptions. There's no errors in the output either. I've tried using breakpoints to confirm it's calling the code as well. The reason you are not

Recommended database structure for OAuth Provider

萝らか妹 提交于 2019-11-29 19:55:00
I am implementing an OAuth Provider using DevDefined library. I wonder if there is any recommended database structure for storing consumer and token data on the server side. Any advice on this would be appreciated. NB: The answer below is applicable mostly to OAuth 1.0 I don't really know anything about the DevDefined library. But here is a non-technical description of the database design I ended up working with in my latest project, using an SQL database. It should cover everything needed to follow the basic specification. I've tried to keep it down to an absolute minimum. RequestTokens token