views:

24

answers:

0

Hi Im working with Google apps domain java, My idea is to display the domain's login page which used is to authenticate users then it should be redirected to JSP page.I tried following example, in which i want to specify four arguments for userservice as described in example But my servlet allow only two arguments such as userService.createLoginURL(destinationURL, authDomain) I dont know how to forward it. Am i missing any jar files.....Please Help me

      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=/test.jsp");


    @SuppressWarnings("unused")
    UserService userService = UserServiceFactory.getUserService();
   userService.createLoginURL("/test.jsp","mydomain.com","mydomain.com",attributesRequest);

Regards, Sharun