这在Java中为我工作:
Set<String> attributesRequest = new HashSet<String>();
String loginRealm = "http://myapp.appspot.com"; //Important that it is exactly the same as in application-manifest.xml, watch out for trailing slashes.
String destinationURL = req.getRequestURI() + "?" + req.getQueryString();
String federatedIdentity = null;
String authDomain = req.getParameter("hd"); //hd is the default parameter name. Contains the google apps domain name of the user logging on. example.com for example.
String loginUrl = userService.createLoginURL(destinationURL, federatedIdentity, authDomain, attributesRequest);
确保包括
<Edition id="free">
<Name>Cloud App Studio</Name>
<Extension ref="navLink" />
<Extension ref="realm" />
</Edition>
在应用程序的manifest.xml
。也就是说,如果它是免费的。重要的部分是包括参考领域。
您没有具体说明您是否确认了您要集成的市场应用程序是否混合使用OpenID/OAuth或它是哪个市场应用程序。 – 2010-09-04 12:02:04