oauth

Is it possible to authenticate using OAuth without prompting the user when we have the user credentials?

Case: A desktop client interacts with Server A. Server A, as a result, needs to connect to server B. The client is passed the oauth request. Now, in the client, we have the user credentials for server B already. Is there some way to authenticate against server B without prompting the user or showing any UI? We need to do this in a gene...

OAuth Consumer request for token from ServiceProvider returns InternalServerError

I'm playing around with DevDefined.OAuth - an OAuth consumer and provider implementation for .Net http://code.google.com/p/devdefined-tools/wiki/OAuth and on launching the ExampleConsumerSite project after configuring the service endpoints on my IIS 7 web server, I'm receiving the following error: Description: An unhandled exception occ...

Suggestions on storing passwords in database

Here's the situation - its a bit different from the other database/password questions on StackOverflow.com I've got two sets of users. One are the "primary" users. The others are the "secondary" users. Every one has a login/password to my site (say mysite.com - that isn't important). Background: Primary users have access to a third sit...

Twitter oauth implemetion in js

Will above link work for twitter oauth ? ...

PHP Implementation of an OAuth Store for Amazon SimpleDB

I am implementing OAuth for delegated access to our API for OnePage (http://myOnePage.com). We are using SimpleDB for our database. Does anyone know of a PHP OAuthStore implementation for SimpleDB? Or any other language for that matter, would be useful. If I don't find anything, I shall be coding it myself and will contribute it back t...

HttpURLConnection.getResponseCode() returns -1 on second invocation

I seem to be running into a peculiar problem on Android 1.5 when a library I'm using (signpost 1.1-SNAPSHOT), makes two consecutive connections to a remote server. The second connection always fails with a HttpURLConnection.getResponseCode() of -1 Here's a testcase that exposes the problem: // BROKEN public void testDefaultOAuthConsum...

Google Login like noi.vn?

I Build a module login using google account like http://noi.vn/Home/Default.aspx, I use OAuthBase.cs class, I got secret key consumer key as well, some experience member who worked with this before, please show me the way to do it, or some snippet code. ...

PHP error missing arguments twitter oauth

I am using the function below function GetTwitterAvatarOauth($oauthtoken, $oauthsecret){ $to = new TwitterOAuth($consumerkey, $consumersecret, $oauthtoken, $oauthsecret); $content = $to->OAuthRequest('https://twitter.com/statuses/friends_timeline.xml', array('count' => '50'), 'GET'); $xml = simplexml_load_file("$content"); $imgurl = $x...

how to obtain a username from oauth key in twitter

I am working with twitter's oauth, and ive run into a weird problem. How do i get a user's profile information using just their token and secret? Here is what im using now function OauthGetProfile($consumerkey, $consumersecret, $oauthtoken, $oauthsecret){ $to = new TwitterOAuth($consumerkey, $consumersecret, $oauthtoken, $oauthse...

How do you unit-test controllers that oauth?

I like Spring MVC because you can unit test your controllers. But testing controllers that oauth is another thing. For instance if I want to get the authorization url because I want to Oauth to GData, I would have to deploy the web-app because Google will only accept authorization requests from my domain (the url of my web app), not my...

Twitter O-Auth Callback url

I am having a problem with Twitter's oauth authentication and using a callback url. I am coding in php and using the sample code referenced by the twitter wiki, http://github.com/abraham/twitteroauth I got that code, and tried a simple test and it worked nicely. However I want to programatically specify the callback url, and the examp...

oAuth in PHP to make 2 legged request

I am currently stuck trying to make requests to a service's api using a 2 legged oAuth request using PHP. I am using the PHP library found here: http://code.google.com/p/oauth-php/ and there seems to be absolutely no documentation anywhere online for using this library for a 2 legged request. So currently from the service I have the fo...

Creating API for site using Oauth and PHP

Hi, I am really knew in the field of API's.Can you give suitable link to start developing API. I have some doubts : Are we developing API's using oauth-php libray? Can i use oauth-php libray and call functions from my files? From where should I start consumer or server side? Any one pls help me. Thanks Kiran ...

Problems with GData Request Token

We have successfully used GData libraries to access a user's Google Docs. But we encountered problems when many users log in to our site and authorize our web app at the same time or successively. Here's what happens: First user successful logs in, authorizes our web app via OAuth and is able to add rubric (or google spreadsheet). Se...

Using OAuth... I don't get it. What am I supposed to do?

Ok so I try to use OAuth (not my choice), and I don't quite understand it. I want to access an API as a specific user. I think I need to get a token and then send it somehow... but this is very weird. I read the documentation, I get the big concept but I don't see how to actually use it. Here are the data I have from the website I'm t...

How to access YQL in Python (Django)?

Hey, I need a simple example for the following task: Send a query to YQL and receive a response I am accessing public data from python backend of my Django app. If I just copy/paste an example from YQL, it says "Please provide valid credentials". I guess, I need OAuth authorization to do it. So I got an API key and a shared secret. N...

How do I use OAuth with PHP and cURL?

I'm trying to authenticate to YouTube via their Data API and simply need to know how the headers should be translated from their example (below) to PHP+CURL function calls. The confusing part being the Authorization portion, which breaks name/value pairing with its own set of name and value pairs. This documentation is all well and goo...

OAauth gem in rails problem.

I'm trying out OAuth for twitter api authentication and ran into a brick wall when my code spits out the message: (instance of OAuth::Consumer needs to have method `marshal_load') My code: @consumer=OAuth::Consumer.new( "token","secret", { :site=>"http://mysite.com/" }) @[email protected]_request_token session[:reque...

Looking for OAuth 1.0a sample code for .NET compact framework

Hello, I'm looking for an OAuth 1.0a sample for .NET compact framework. Preferably .netcf 3.5 but 2.0 is fine too. I'm looking to call oauth for the foursquare.com api (http://groups.google.com/group/foursquare-api/web/oauth) ...

Google Federated Login (OpenID+Oauth) for Hosted Apps - changing end points?

I'm trying to integrate the Google Federated Login with a premier apps account, but I'm having some problems. When I send the request to: https://www.google.com/accounts/o8/ud with all the parameters (see below), I get back both a request_token and list of attributes asked for by Attribute Exchange. This is perfect, as we need the email...