kayvonf820 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Documentation Bug - GDataGAuthRequestFactory.AccountType default value #247

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm looking at the documentation for GDataGAuthRequestFactory.

Here is the link that I was using:
http://google-
gdata.googlecode.com/svn/docs/folder16/AllMembers_T_Google_GData_Client_GDa
taGAuthRequestFactory.htm

It states about the AccountType is "Defaults, if not set, to 
GOOGLE_OR_HOSTED"

However, if I create a new PicasaService:
_picasaService = new PicasaServer(_appname)

I get an error when I try logging into Picasa Service with an account from 
a Google Apps Domain.

GDataGAuthRequestFactory authFactory = new GDataGAuthRequestFactory("lh2", 
_appName);
authFactory.AccountType = "GOOGLE_OR_HOSTED";

_picasaService = new PicasaService(authFactory.ApplicationName);
_picasaService.RequestFactory = authFactory;

Original issue reported on code.google.com by mlsteeves on 19 May 2009 at 5:31

GoogleCodeExporter commented 8 years ago
Ok, the default account type is HOSTED_OR_GOOGLE (documentation bug, it is set 
correctly in the code). I 
fixed that part.

What you are encountering is a bug in the Google authenticaiton service, where 
HOSTED_OR_GOOGLE is not 
working for your particular account. There, if you use "GOOGLE' it works (and 
what you are doing is 
interpreted as GOOGLE, at least it looks like it). 

File a bug against the services, this is a known issue for some time, more 
people asking for a fix might make 
them speed up the process.

Original comment by fman...@gmail.com on 20 Jul 2009 at 7:55