oauth

Using cURL/OAuth to access del.icio.us api

I'm following this tutorial to access the del.icio.us api, but this is my first time using cURL or OAuth so hitting a few snags. I'm using the following code $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_nonce=123456789&oauth_timestamp="+$timestamp+"&oauth_co...

authenticating user with facebook on iOS without UIWebView

Is there a way to authenticate a user with facebook in the background using id/pass he entered in configuration screen? I mean authentication without the usage of UIWebView, but using some kind of Http client to retrieve auth token (OAuth 2.0 preferably) ...

Authentication on Android

Hi I am developing an Android App where I require a user to authenticate his session before using the app. One way is to store a user name and password by asking him to register on the app and then use that to authenticate him. But i was looking to do something else, maybe use an OpenId account to authenticate or Opensoial or something l...

Twitter Turning off Basic Auth - is OAuth overkill for some tasks?

According to Twitter docs, basic auth is being turned off this month. I can see the benefit of OAuth when your service accepts third party user twitter login/id's, but for a simple twitter bot that simply post to a single bot twitter account, does OAuth seem like overkill? In the case of the latter, what's the least resource-expendful...

Simplest way to post Twitter status update to a dedicated account in Java

Hi, I am looking for a very simple way to post status updates to a dedicated Twitter account. Currently we are using a POST request to https://api.twitter.com/1/statuses/update.xml with https basic auth. But Twitter is going to disable this API: http://apiwiki.twitter.com/Authentication This oauth stuff is really, really complicated a...

Facebook Connect API issue with authentication token

I have implemented the following code below according to the documentation and can get it to connect and display user id... <?php define('FACEBOOK_APP_ID', '87939462878'); define('FACEBOOK_SECRET', '1ab6346bc51329831998985aba200935'); function get_facebook_cookie($app_id, $application_secret) { $args = array(); parse_str(trim($_CO...

Facebook OAuth2 Logout does not remove fb_ cookie

Hi, This used to work so I'm not sure what went wrong. User is able to login to Facebook just fine. Logging out is the problem. I log the user out by redirecting them to the Facebook logout php script. $facebook->getLogoutUrl(); When the user clicks on that link, they are logged out of the Facebook page. However, when they are directe...

OAuth access for R

I'm trying to use R to grab some web data that requires OAuth authentication. Searching on CRAN and RSeek.org for info on OAuth + R provides nothing. Any tips for accessing RESTful APIs with R using OAuth? I'm considering using some Python/Perl/Ruby to grab the data, save it to a text file, then work on it with R. I'd prefer to stay to...

Google Buzz & OAuth - redirection problem

Hope this doesn't get too complicated. :) thing is.. I'm trying to make my PHP code post notes to Google Buzz using OAuth as authentication mechanism. I'm doing the typical "OAuth dance" (get request token, authorise it, exchange for access token), but i've ran into some problems that seem to be on Google's side. Hope i'm wrong - it wou...

What does "Rogue request trapped" mean when working with MySpace OAuth? (C#)

Hi All, So, I'm extending a social media class that I have (that works with Twitter, Tumblr, Posterous and Bit.ly already) to work with MySpace. I've gotten up to the point where I can request temporary credentials, and then redirect to the authorization url. The problem is that the authorization url keeps returning an XML response with...

Android + OAUTH + TWITTER callback problems

Hello, I am making a twitter client for android. While retrieving the request token i want to pass a URI so that my activity can be resumed. I keep getting error with this. However when i tried passing null it the browser opens up but it doesnt go back to the activity. I am attaching my code below: protected void onCreate(Bundle ...

Is it safe to store OAuth WRAP access tokens in a cookie?

I'm planning to setup a website that would access an oauth wrap framework. I was thinking of storing the access token on the client machine as it is. I do NOT want to maintain a database of temporary tokens, etc on the server. Should I be doing do? Or should I encrypt it? What else do I need to successfully manage a non-database utilizi...

What is a good django library for logging in users with Twitter, Facebook or an OpenID provider?

I want to create an application that allows a user to register and login to a django application with an external provider. In addition, I then want the user to be able to associate additional accounts with that initial account. Finally, I would like the user to be able to login to the application with one of the other associated account...

Zend OAuth with twitter single access tokens

Hey all, I'm developing an application where it requires users to sign in using twitter and OAuth. Everything works just fine thanks to Zend_OAuth. The problem is that the web app will also make some calls to the twitter API but these will be handled internally without the need of authenticating. Twitter Dev provides an 'access_token' a...

A Faster / More Scalable Approach to Twitter OAuth Dance in Rails?

I'm running a Rails app on the Heroku Stack (complete with Memcached, DJ Asynchronous workers, MongoDB persistent storage). Right now we use Twitter Oauth as the only authentication option on our site. (We plan to branch out to FB connect, OpenID, and/or Email/password eventually). Ruby/Rails apps, as you probably know, don't support c...

oAuth/Gmail from ASP.NET - "The remote server returned an error: (400) Bad Request"

I have been banging my head on this for a long time now no avail. Hoping some fellow SOers can help out. using oAuth.net library for the Gmail Contacts API The request seems well-formed and I have stepped through the requests, and cannot discern anything wrong. Tried checking if the timestamp is an issue - it seems that was a common i...

Can't get my access_token using Rails and the OAuth gem

Hello everyone, I am developing my Rails 3 application that uses Twitter OAuth and I am getting troubles because apparently I can't get the access_token, after clicking 'Allow' and Twitter redirecting me back to my application url, when I go to twitter.com/settings/connections I can't see my app there as authorized. I guess there is som...

How to decode OAuth 2.0 for Canvas signed_request in C#?

I'm able to successfully validate the signed request for a Facebook canvas app using the example here, but I'm unable to decode the payload. The Facebook documentation states that the 2nd parameter in signed_request is a base64url encoded JSON object. In PHP the payload is decoded using json_decode: $data = json_decode(base64_url_dec...

How to create Openid, Google, Yahoo, facebook, twitter without using Gigya.com in php?

How can I create a universal login system like stackoverflow? http://stackoverflow.com/users/login in php? I don't want to use Gigya, because I don't want their branding on my site ...

How to generate OAuth signature with php for Twitter API?

Hi, Actually it is not a php question it's more about OAuth. I'm trying to understand how to generate the OAuth sign key. I read the Twitter Docs and tried the example, but I couldn't understand how to use the SHA1. Should I use SHA1 on the base string with or without the secret_key? I tried many variations but the sign key was differ...