I don't know if there are any differences, since I never tried the
other way.

I'll try to investigate in the next days, but I think this could be
helpful for things such as https redirect and similar issues.
Maybe a word from GAE team will help (anyway, some blog posts about
OpenID have been announced, so I think we'll be informed soon about
everything).

regards
Lorenzo

On Jul 19, 3:52 pm, Daniel Pascariu <[email protected]> wrote:
> Hi Lorenzo,
>
> Thanks for taking the time to help !
>
> I tried to call userService.createLoginURL with federatedIdentity =
> "https://www.google.com/accounts/o8/site-xrds?hd=domain1.com"; as you
> suggested and it seems to work :)
>
> But it also works with federatedIdentity = 'domain1.com" !
>
> The produced URLs are slightly different, but the outcome seems the
> same - I can login to domain1.com using user1 (on google apps).
> I'm wondering if there's any subtle difference between the OpenId
> authentification in the two cases - do you know ?
>
> Thanks,
> Daniel
>
> On Jul 19, 9:43 am, "l.denardo" <[email protected]> wrote:
>
> > The link to generate login URL is different for apps accounts
>
> > String appsLoginUrl = userService.getOpenIdLoginUrl(redirectTo,
> > loginDomain,
> >                                                 
> > "https://www.google.com/accounts/o8/site-xrds?hd="; +
> > loginDomain, attributesRequest);
>
> > loginDomain is obviously your domain, in your case the URL is
> > "https://www.google.com/accounts/o8/site-xrds?hd=domain1.com";
>
> > Regards
> > Lorenzo
>
> > On Jul 15, 11:29 pm, Daniel Pascariu <[email protected]>
> > wrote:
>
> > > Hi,
>
> > > I'm trying to enable SSO for my App Engine app in order to put it on
> > > the Google Marketplace.
> > > Let's say that I have my GAE app running atwww.example.com. When I
> > > publish it to the Google Marketplace, a Google Apps user (say
> > > [email protected]) will be able to click on a link in the Google menu
> > > pointing to my site - something like 
> > > this:http://www.example.com/home?from=google&domain=domain1.com
>
> > > Now, acording to this docu (http://code.google.com/appengine/docs/java/
> > > users/overview.html) I should use the Users API to authenticate the
> > > user.
> > > I assume I have to use  userService.createLoginURL method somehow and
> > > use the domain "domain1.com" (which is passed as a parameter to my /
> > > home servlet).
>
> > > I have tried something like this:
>
> > > Set<String> attributesRequest = new HashSet<String>();
> > > attributesRequest.add("openid.mode=checkid_immediate");
> > > attributesRequest.add("openid.ns=http://specs.openid.net/auth/2.0";);
> > > attributesRequest.add("openid.return_to=" + thisUrl);
> > > userService.createLoginURL(thisUrl, "domain1.com", 
> > > "https://www.google.com/accounts/o8/id";, attributesRequest);
>
> > > The probem is that the login URL which I get works for google accounts
> > > only (like gmail accounts) - I do not get any Google Apps page where a
> > > user like [email protected] could login :(
>
> > > Does anybody know how I can get this working ? Or am I on the wrong
> > > track ?
>
> > > Many thanks for the help !!
> > > Daniel

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

Reply via email to