Drasko, I checked your demo,its great. I found one small problem. For Yahoo and google it works fine but for AOL and OpenId it go to goole login page. does this mean we can use only google and yahoo or its something you have just not provided correct info while creating the urls.
Thyanks, Ravi. 2010/5/18 Drasko <[email protected]> > As of 1.3.4 the method createFederatedLoginURL is being merged into > the "standard" createLoginURL method. Same happend to other > "federated" methods. > > UserService userService = UserServiceFactory.getUserService(); > > to get the authenticated user: > > User user = userService.getCurrentUser(); > > to get the logout redirect URL: > > String redirectURLbyFederation = > userService.createLogoutURL(destinationURL, authDomain); > > to get the login redirect URL: > > String redirectURLbyFederation = > userService.createLoginURL(destinationURL, authDomain, > federatedIdentity, attributesRequest); > > I have successfully used the following request attributes: > > 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://super- > easy.appspot.com"); > > A working example with the GWT widget to select an OpenID provider is > running under the http://super-easy.appspot.com > > HTH > Drasko > > > On May 13, 1:39 am, Robert Lancer <[email protected]> wrote: > > Me too, some documentation would be helpful. > > > > On May 12, 4:54 am, antichrist <[email protected]> wrote: > > > > > > > > > > > > > I also trying to use this. > > > > > In my case, I want to log in via my apps domain id (ex: > > > [email protected]), So > > > > > HashSet<String> attributes = new HashSet(); > > > attributes.add("openid.mode=checkid_immediate"); > > > attributes.add("openid.ns= > http://specs.openid.net/auth/2.0"); > > > attributes.add("openid.return_to= > http://example.com"); > > > userService.createFederatedLoginURL("example.com" , requestUri, > > > "example.com", attributes)); > > > > > And From this, created link is : > http://example.com/_ah/login_redir?claimid=example.com&continue=http:... > > > > > When I clicked that link, it redirect to my apps domain login page, > > > but after login complete it redirect to example.com > > > > > but page not found error occured. > > > > > I changed above link with modification and find "claimid=example.com" > > > part is correct but continue=http://example.com/isincorrect. > > > > > But I can't figure out correct input. > > > > > On 4월7일, 오전3시56분, Viðar Svansson <[email protected]> wrote: > > > > > > Hi > > > > > > I just noticedcreateFederatedLoginURL() but could not find any > > > > documentation for it (except for JavaDoc). Is this intended for > native > > > > support for Google Marketplace? Would really appreciate some > > > > documentation on this. > > > > > > I am trying this out in 1.3.2 but get an error, The API package > 'user' > > > > or call 'CreateFederatedLoginURL()' was not found. > > > > > > Viðar > > > > > > On Sat, Mar 27, 2010 at 10:27 AM, dflorey <[email protected]> > wrote: > > > > > Hi, > > > > > I'm trying to replace the Step2 stuff with the new > > > > >createFederatedLoginURL(), but I just get server errors in the > > > > > provided /_ah/ servlets. > > > > > Are these methods supposed to work and can someone please post an > > > > > example how to authenticate and authorize a user? > > > > > Thanks a lot, > > > > > > > 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]<google-appengine-java%[email protected]> > . > > > > > For more options, visit this group athttp:// > groups.google.com/group/google-appengine-java?hl=en.-원본<http://groups.google.com/group/google-appengine-java?hl=en.-%EC%9B%90%EB%B3%B8>텍스트 > 숨기기 - > > > > > > - 원본 텍스트 보기 - > > > > > -- > > > 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]<google-appengine-java%[email protected]> > . > > > For more options, visit this group athttp:// > groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > 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]<google-appengine-java%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/google-appengine-java?hl=en. > > -- > 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]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- 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.
