I don't really get why you want to use OpenID if you are limiting your
users to Google & Google Apps accounts?

cheers

James

On 5 December 2010 20:54, AmaltasCoder <[email protected]> wrote:
> Ok, a bit more explanation:
>
> The problem with creating Login URL's like mentioned above is that
> even yahoo.com etc. starts to work when I only want Google Account and
> Google Apps to work. Is there any good reference implementation that
> leaves the OpenID heavy lifting to UserService? and works for both
> Google Account and Google Apps only.
>
> On Dec 1, 10:59 pm, AmaltasCoder <[email protected]> wrote:
>> My application on GAE should work for both Google Accounts and Google
>> Apps accounts. I understand that UserService on app engine makes the
>> task of using OpenID easy. I generate the Login/Logout url's as
>> follows, can someone please check if these are correct calls:
>>
>> Login URL for Google Account:
>>
>> UserService userService = UserServiceFactory.getUserService();
>> userService.createLoginURL(destinationURL, null, "gmail.com", new
>> HashSet<String>())
>>
>> Login URL for Google Apps Account:
>>
>> UserService userService = UserServiceFactory.getUserService();
>> userService.createLoginURL(destinationURL, null,
>> "googleappsdomaintouse.com", new HashSet<String>())
>>
>> Logout URL for Google Account and Google Apps account:
>>
>> UserService userService = UserServiceFactory.getUserService();
>> User user = userService.getCurrentUser();
>> userService.createLogoutURL(destinationURL, user.getAuthDomain())
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" 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-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to