oauth

Pinless OAuth on Adobe AIR for Android

白昼怎懂夜的黑 提交于 2020-01-01 06:25:26
问题 I got pinless OAuth working on Adobe AIR for Desktop, iOS, but not Android. For some reason, we're not getting the oauth_verifier (which contains the sha'd code) in StageWebView on an Android device. Any clue? Here's the debug for on desktop and on Droid 2; notice the 3rd line in the Droid 2 trace output which is missing all the OAuth variables after the callback URL. Desktop: AuthorizeTwitterService::onComplete, data: oauth_token=De2k4zANjzAhT3hXV4eqOfTVxJsshVIJjgsuwPMUg8&oauth_token_secret

Using OAuth for both development and production environments

随声附和 提交于 2020-01-01 04:56:06
问题 I have seen other questions on SO about this (here, here, and here), but I am not satisfied with any of the solutions, so I am asking it again. I am starting a web application that will utilize OAuth from multiple providers (Google, Facebook, Twitter, Yahoo) for authentication. I am struggling to find a configuration suitable to use for both a local development environment and a production environment. The leading solutions I've found are to register multiple apps within each provider,

Rails two-legged OAuth provider?

为君一笑 提交于 2019-12-31 23:17:46
问题 I have a rails 2.3.5 application with an API I wish to protect. There is no user - it is an app to app style webservice (more like an Amazon service than facebook), and so I would like to implement it using a two-legged OAuth approach. I have been trying to use the oauth-plugin server implementation as a start: http://github.com/pelle/oauth-plugin ...but it is built expecting three-legged (web redirect flow) oauth. Before I dig deeper into making changes to it to support two-legged, I wanted

Getting First Name/Last Name/Email from Twitter using OAuth

天涯浪子 提交于 2019-12-31 22:42:12
问题 I'm using omniauth exclusively to allow login to my website with facebook/google/twitter. I store first name, last name, and email. However, when I raise the twitter auth hash from oauth I only get nickname, name, location, image, description and urls in the auth hash. Is there a scope I can pass in my initializer to get the user's email and break name out into the first_name, last_name fields? 回答1: Twitter does not give out user emails so you will not be able to get that information from the

What are the characteristics of an OAuth token?

点点圈 提交于 2019-12-31 12:06:18
问题 How many characters long can an oauth access token and oauth access secret be and what are the allowed characters? I need to store them in a database. 回答1: I am not sure there are any explicit limits. The spec doesn't have any. That said, OAuth tokens are often passed as url parameters and so have some of the same limitations. ie need to be properly encoded, etc. 回答2: OAuth doesn't specify the format or content of a token. We simply use encrypted name-value pairs as token. You can use any

python & smtplib: Is sending mail via gmail using oauth2 possible?

送分小仙女□ 提交于 2019-12-31 10:52:09
问题 So I can login to and send mail through gmail using smtplib (using the script below), but I was just wondering if using oauth2 was an option like with imaplib? I didn't see anything on the smtplib documentation page about oauth and I haven't found anything googling. Thanks. #! /usr/bin/python import smtplib to = 'myemailaddress' gmail_user = 'myemailaddress' gmail_pwd = 'passwd' smtpserver = smtplib.SMTP("smtp.gmail.com",587) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo smtpserver

python & smtplib: Is sending mail via gmail using oauth2 possible?

只愿长相守 提交于 2019-12-31 10:51:37
问题 So I can login to and send mail through gmail using smtplib (using the script below), but I was just wondering if using oauth2 was an option like with imaplib? I didn't see anything on the smtplib documentation page about oauth and I haven't found anything googling. Thanks. #! /usr/bin/python import smtplib to = 'myemailaddress' gmail_user = 'myemailaddress' gmail_pwd = 'passwd' smtpserver = smtplib.SMTP("smtp.gmail.com",587) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo smtpserver

Can anybody explain OAuth?

三世轮回 提交于 2019-12-31 10:39:52
问题 I've read a bit about it at http://oauth.net/ , it's "a simple way to publish and interact with protected data" apparently. I think it's exactly what I need to provide a secure way of accessing data from an android/iphone app via a REST web service, but I can't work out exactly what it is. So, put simply, what exactly does it do and are there any (really) simple examples of it in action I can follow, preferably implementing something in c# that can be accessed from a smartphone app? 回答1: From

how to refresh an oauth token when using the Facebook iPhone SDK

醉酒当歌 提交于 2019-12-31 10:39:19
问题 I'm using the Facebook SDK for iOS in my app: http://github.com/facebook/facebook-ios-sdk The oAuth token expires after about 2 hours. How can I "refresh" the oAuth token without having to call the [Facebook authorize...] method again - which shows an empty Facebook dialog briefly if the user had previously logged in? What I want to avoid is requiring the user to re-login to FB each time they use the app - say, day to day. I am already saving / restoring oAuth tokens when the app exits /

Instagram returning “Matching code was not found or was already used” when using OAuth

旧巷老猫 提交于 2019-12-31 08:05:52
问题 I am trying to use the Instagram OAuth using the developer documentation at https://www.instagram.com/developer/authentication/. Step 1 and 2 are working without any problems, so I have my Client-ID , the Client-Secret , the Redirect-URI and the code. But every-time I am trying to get the Acces Token I get the following error: { "code": 400, "error_type": "OAuthException", "error_message": "Matching code was not found or was already used." } Any tips how to solve this? 回答1: We are