hi to all.
im using than spring securiyt.
i make simple example and almostly learn somethings about that.
i have a question that when a user registered to my application need to be login automatically after registration.
so he or she must be authenticated.
i need to redirect he after successful registration to login page, but the problem is i cant redirect he in
http post method and in loginAuthentication related to spring security, the request must be in post method.
so its my registration method
Code:
    @RequestMapping(value = "registeringUser", method = RequestMethod.POST)
    public ModelAndView doUserRegistration(UserInformationPasswordConfirmation userInformationPasswordConfirmation,
                                           BindingResult bindingResult, HttpServletResponse httpServletResponse) {
        registrationValidation.validate(userInformationPasswordConfirmation, bindingResult);
        if (bindingResult.hasErrors()) {
            return new ModelAndView("userRegistration", "userInformationPasswordConfirmation",
                    userInformationPasswordConfirmation);
        } else {
            userService.saveUser(userInformationPasswordConfirmation.getUserInformation());
            return new ModelAndView("redirect:/authenticateUser?userName=" + userInformationPasswordConfirmation
                    .getUserInformation().getUserName() + "&password=" + userInformationPasswordConfirmation
                    .getUserInformation().getPassword());
        }
    }
same as you see at above code i redirect user to authenticatnig and logining in to system but the log said to me
the request is in get mod
Code:
70691 [http-8080-exec-10] DEBUG org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter - Authentication request failed: org.springframework.security.authentication.AuthenticationServiceException: Authentication method not supported: GET
and user not bo logined to system after registration.
so how can i change my redirection to another shape to redirecting in post mode?

Code:
"redirect:/authenticateUser?userName="  . . .