Hi, I've been trying to login google apps domains users to my application. User enters email address and its domain checked from the datastore if the user installed and using the software then user will be sent to google login screens for login. I don't need docs, contacts, etc. api access, just need the FederatedIdentity supplied by the built-in OpenId. I've done it for google accounts but no luck with google apps domains users. I'm using GWT built-in OpenId, GAE/J. Can you provide a sample code or link to a tutorial to achieve it. I'm using the code below.
UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); 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=http://mysoftware.mydomain.com/ mobile/"); String loginURL = userService.createLoginURL("http:// mysoftware.mydomain.com/mobile/", "google.com", "https:// www.google.com/accounts/o8/id", attributesRequest); String logoutURL = userService.createLogoutURL("http:// mysoftware.mydomain.com/mobile/", "google.com"); Thanks, Omer. On Aug 31, 7:10 am, Rodrigo Moraes <rodrigo.mor...@gmail.com> wrote: > On Aug 31, 12:23 am, gops wrote: > > > Confirmation is done only one time. the first time. if you want to > > avoid confirmation even for first time, domain should be registered to > > google first. ( which they may not approve for OAuth+OpenID, as you > > have mentioned in a linked document.) > > Hi gops, > Indeed. I can confirm now that SSO works with built-inOpenId. Got it > working and the problem was (probably) a bad URL that I added to the > marketplace white-list (it seems that even ending slashes matter, or I > missed something in my previous attempts). Now user coming from Google > Apps can be logged in directly, without confirmation. > > -- rodrigo -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.