SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Unable to retrieve domain user password thro' API #348

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I just started developing using Google Apps APIs. I am struck in a situation, 
please help me out.

I have a portal, all users from my google apps domain has to access that, for 
that I provided a login authentication servlet.

So in the LoginAuthentication servlet, I retrieve the username/password from 
the portal & have to check with my domain, here Im unable to retrieve password 
from my domain(I can retrieve other details) using API, it returns just null.

AppsForYourDomainClient client =
new AppsForYourDomainClient( "my admin email", "adminpwd", "domain" );
UserEntry userEntry = client.retrieveUser("username");
userEntry.getLogin().getUsername(); ---> returns my username
userEntry.getLogin().getPassword(); --> returns null

Original issue reported on code.google.com by ad...@ac2platform.com on 7 Jun 2011 at 3:11

GoogleCodeExporter commented 9 years ago
For security reasons, passwords are never returned by the API.

Original comment by ccherub...@google.com on 22 Aug 2011 at 6:00

GoogleCodeExporter commented 9 years ago
So why put an accessor on the class then?

Original comment by paul.for...@mavenwave.com on 18 Mar 2012 at 9:33

GoogleCodeExporter commented 9 years ago
also if you are doing google domain migrations oauth on allows you go get the 
users, you still need to the users credentials to migrate assets calendar, 
contacts or whatever to another google domain. All the gdata client methods 
user username, password, domain for authenticate no oauth some how do you 
perform this task?

Original comment by paul.for...@mavenwave.com on 18 Mar 2012 at 9:35