oauth

Client-side retrieval of Google Contact pictures

孤街醉人 提交于 2020-01-12 08:05:11
问题 I'm fetching google contacts in a webapp using the Google JavaScript API and I'd like to retrieve their pictures. I'm doing something like this (heavily simplified): var token; // let's admit this is available already function getPhotoUrl(entry, cb) { var link = entry.link.filter(function(link) { return link.type.indexOf("image") === 0; }).shift(); if (!link) return cb(null); var request = new XMLHttpRequest(); request.open("GET", link.href + "?v=3.0&access_token=" + token, true); request

FB.getLoginStatus does not fires callback function

谁说我不能喝 提交于 2020-01-12 07:07:28
问题 I have a difficult problem. Difficult means I searched through the net and StackOverflow as well the whole FBJS SDK documentation and haven't find answer. I am building a Page Tab application where I'd like to let fans to rsvp events. So I have to check if the user is logged in and if it doesn't I have to login. That sounds pretty easy, but FB.getLoginStatus doesn't fires callback function. This is the code excerpt: FB.init({ appId: window.appID, status: true, xfbml: true, cookie: true, oauth

OAuth 2.0 Authorization Framework

独自空忆成欢 提交于 2020-01-12 04:03:25
OAuth 2.0 Authorization Framework In this article OAuth 2.0 is a protocol that allows a user to grant limited access to their resources on one site, to another site, without having to expose their credentials. According to OAuth‘s website the protocol is not unlike a valet key. Many luxury cars today come with a valet key. It is a special key you give the parking attendant and unlike your regular key, will not allow the car to drive more than a mile or two. Some valet keys will not open the trunk, while others will block access to your onboard cell phone address book. Regardless of what

But Seriously… Example of ASP.NET WebAPI implementation including OAuth

时光毁灭记忆、已成空白 提交于 2020-01-12 03:24:03
问题 I'm really not interested in WCF samples. The DotNetOpenAuth implementations that I found are also incomplete or assume WCF. I've found Thinkitecture.IdentityServer.45 which is anything but lightweight and isn't really appropriate for building into my new WebAPI project. I even found the Oauth2DotNet project that has almost no real information. Microsoft has posted a few Oauth/OpenID related projects, but I can't even find proper documentation for these either. My project: Create a new site

How to use findOrCreate in Sequelize

本小妞迷上赌 提交于 2020-01-12 03:21:28
问题 I am Sequelize beginner. I'd like to oAuth authenticate with Twitter or Facebook and want to save user information in the database. But if oAuth authentication is done on multiple sites, there is a problem that information such as userid registered in the database will duplicate with other site . In order to avoid this, I would like to do a process to update the database only when the specified userid does not already exist in the database. I knew that we could use sequelize's findOrCreate to

PHP TWITTER bot to follow/unfollow using api version 1.1 and cursors

折月煮酒 提交于 2020-01-12 02:12:09
问题 This code should only unfollow users who are not following back, but it unfollows SOME followers, cannot figure out why. $oTwitter = new TwitterOAuth (...) $aFollowing = $oTwitter->get('friends/ids'); $aFollowing = $aFollowing->ids; $aFollowers = $oTwitter->get('followers/ids'); $aFollowers = $aFollowers->ids; $i=1; foreach( $aFollowing as $iFollowing ) { $isFollowing = in_array( $iFollowing, $aFollowers ); echo "$iFollowing: ".( $isFollowing ? 'OK' : '!!!' )."<br/>"; if( !$isFollowing ) {

Universal Analytics and signup with Facebook

我是研究僧i 提交于 2020-01-11 22:56:23
问题 I have a website (theneeds.com) that allows signup via Facebook. We're running several campaigns, e.g. on Facebook itself, and we'd like to properly track signups from the different campaigns. The problem is with Universal Analytics: when a user signs up with Facebook, she triggers a new session thus loosing the campaign reference. Two possible solutions are: remove the analytics tracking on the signup form (i.e. the page that causes the new session to start) add facebook.com to the referral

Universal Analytics and signup with Facebook

本小妞迷上赌 提交于 2020-01-11 22:55:05
问题 I have a website (theneeds.com) that allows signup via Facebook. We're running several campaigns, e.g. on Facebook itself, and we'd like to properly track signups from the different campaigns. The problem is with Universal Analytics: when a user signs up with Facebook, she triggers a new session thus loosing the campaign reference. Two possible solutions are: remove the analytics tracking on the signup form (i.e. the page that causes the new session to start) add facebook.com to the referral

Universal Analytics and signup with Facebook

两盒软妹~` 提交于 2020-01-11 22:54:11
问题 I have a website (theneeds.com) that allows signup via Facebook. We're running several campaigns, e.g. on Facebook itself, and we'd like to properly track signups from the different campaigns. The problem is with Universal Analytics: when a user signs up with Facebook, she triggers a new session thus loosing the campaign reference. Two possible solutions are: remove the analytics tracking on the signup form (i.e. the page that causes the new session to start) add facebook.com to the referral

Use External Access Token or Local Access Token

此生再无相见时 提交于 2020-01-11 19:57:35
问题 I am developing an application using ASP.NET MVC 5.2.2, Web API 2.2 and Katana/OWIN 3.0 . The application uses ASP.NET Identity 2.1 for local accounts and database. I am using OAuth Authorization Server to generate access and refresh token. I have Android and IOS apps which uses my local oauth authorization server. Android and IOS apps uses SDK to login with Facebook, Google, etc. After that the apps will send the (Facebook/Google/etc) access token to the server. The server will validate