My employer is using the Educational Edition of Google Apps for email,
and we'd like to use the .NET Provisioning API to create a C# based
web application to manage user accounts and set up email lists and so
on.

I am not able to get authentication from Google programmatically using
my administrator account -- I'm continually getting an
InvalidCredentials exception and required CAPTCHA challenge. Unlocking
the admin account by using 
https://www.google.com/a/(my.domain.edu)/UnlockCaptcha
does not help. I can log on to the web-based Google Apps admin for my
testing environment just fine, so it seems that the the account is
sound.

I've also been through the information here: 
http://code.google.com/apis/apps/faq.html#captcha

A rough version of the code in question (sorry for the ugly
formatting):

string domain = "my.domain.edu";
string uName = userName.Text + "%40my%2Edomain%2Eedu";
string pWord = password.Text;

UserFeed feed;

try
{
AppsService service = new AppsService(domain, uName, pWord);
//this is where the error is thrown.
feed = service.RetrieveAllUsers();
}
catch(Exception e)
{
//exception handling code here.
}

I've confirmed that the API is enabled for my testing environment.

I am hoping that I'm making a simple mistake here, but if there are
other options I can investigate, I'd appreciate any suggestions.

Thanks much,
Rose Cooke
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to