authsub

How does one retrieve the email address of a user with GData?

假如想象 提交于 2020-01-10 04:13:07
问题 I'm trying to use GData to retrieve the email address, real name, and profile URL of the user that just authorized my site using Google OAuth. We know how to request it using Google's OpenID flow, but the OpenID flow has the severe limitation that we have to ask for a Google Apps user's domain before we know where to send them to log in. At least using OAuth (or even AuthSub), the user gets prompted for which of their Google accounts to log in. 回答1: Still not clear that this is possible, but

How does one retrieve the email address of a user with GData?

余生长醉 提交于 2020-01-10 04:13:06
问题 I'm trying to use GData to retrieve the email address, real name, and profile URL of the user that just authorized my site using Google OAuth. We know how to request it using Google's OpenID flow, but the OpenID flow has the severe limitation that we have to ask for a Google Apps user's domain before we know where to send them to log in. At least using OAuth (or even AuthSub), the user gets prompted for which of their Google accounts to log in. 回答1: Still not clear that this is possible, but

AuthSub: (404, 'Not Found', 'Unknown user.')

99封情书 提交于 2020-01-07 00:35:38
问题 I try to use Picasa API with AuthSub. My code: GD_CLIENT = gdata.photos.service.PhotosService() def login(request): def GetAuthSubUrl(): callback = 'http://127.0.0.1:8000/callback' scope = 'https://picasaweb.google.com/data/' secure = False session = True return GD_CLIENT.GenerateAuthSubURL(callback, scope, secure, session) auth_sub_url = GetAuthSubUrl() return HttpResponseRedirect(auth_sub_url) def confirm(request): authsub_token = request.GET['token'] token = GD_CLIENT.SetAuthSubToken

How to get Google Analytics data using OAuth?

半腔热情 提交于 2019-12-17 15:42:38
问题 Hy guys, we are developing a system which will provide users with access to Google Analytics. I'm trying to implement it in the way so user don't need to enter their Google login credentials on our site, so trying to get it work using their login. I have a solution which gets analytics using user's email and password. I'm looking for a solution which will not require user's email and password but can not find anything. How can it be done? any advices or links will be appreciated. thanks 回答1:

How to get Google Analytics data using OAuth?

大憨熊 提交于 2019-12-17 15:42:13
问题 Hy guys, we are developing a system which will provide users with access to Google Analytics. I'm trying to implement it in the way so user don't need to enter their Google login credentials on our site, so trying to get it work using their login. I have a solution which gets analytics using user's email and password. I'm looking for a solution which will not require user's email and password but can not find anything. How can it be done? any advices or links will be appreciated. thanks 回答1:

Get Google contacts via AuthSub c#

有些话、适合烂在心里 提交于 2019-12-13 05:24:29
问题 Does any one have a working example of getting google contact via AuthSub in c# I have tried this url , but i was not able to complete it. 回答1: Here is a piece of code from one of my projects: public class GoogleContactsProvider : IContactProvider { #region IContactProvider Members /// <summary> /// Gets the contacts list form the contact provider. /// </summary> /// <returns></returns> public EntityCollection<IContactItem> GetContactsList() { EntityCollection<IContactItem> collection = new

HTTP/1.1 401 Token invalid - AuthSub token has wrong scope

北战南征 提交于 2019-12-09 23:57:56
问题 I get this error when trying to get a feed from Google Analytics API. However, using the same token I get successful feeds from Google Calendar. The code between the two is exactly the same except for the feed url. So it must have something to do with Analytics being https and Calendar just http. I have successfully created a non-secure, long-lived token. The scope parameter while requesting the initial token: scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F%20https%3A%2F%2Fwww.google

Permanent access token with YouTube api?

℡╲_俬逩灬. 提交于 2019-12-09 10:57:11
问题 I have gone through the google documentations for Oauth and AuthSub methods for authenticating and I've tried to google this without results. For Facebook, you can request an access token which is of length lifetime , meaning you won't have to be requesting a new token every few weeks. What about Google, and YouTube in specific, is there any authentication method which allows you to use that token permanently? In their documentation they state that they have long-life but no sort of

HTTP/1.1 401 Token invalid - AuthSub token has wrong scope

时光总嘲笑我的痴心妄想 提交于 2019-12-04 18:24:19
I get this error when trying to get a feed from Google Analytics API. However, using the same token I get successful feeds from Google Calendar. The code between the two is exactly the same except for the feed url. So it must have something to do with Analytics being https and Calendar just http. I have successfully created a non-secure, long-lived token. The scope parameter while requesting the initial token: scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F%20https%3A%2F%2Fwww.google.com%2Fanalytics%2Ffeeds My request for the long-lived token: GET /accounts/AuthSubSessionToken HTTP/1.1

Permanent access token with YouTube api?

故事扮演 提交于 2019-12-03 13:38:46
I have gone through the google documentations for Oauth and AuthSub methods for authenticating and I've tried to google this without results. For Facebook, you can request an access token which is of length lifetime , meaning you won't have to be requesting a new token every few weeks. What about Google, and YouTube in specific, is there any authentication method which allows you to use that token permanently? In their documentation they state that they have long-life but no sort of additional detail, of exactly how long and whether or not you could actually get one which never expires.