It is working for us:
protected void login(User user) {
UsernamePasswordAuthenticationToken auth = new
UsernamePasswordAuthenticationToken(
user, user.getPassword(), user.getAuthorities());
auth.setDetails(user);
SecurityContextHolder.getContext().setAut
Thanks Josep for your reply but the access denied message is not coming from
the servlet. The servlet is accessed and executes alright. It comes when the
servlet tries to redirect to the home page so its actually coming from the
home page which is protected by a role. I thought that by logging user
The servlet needs to be an "allowed" page to users.
In security.xml:
2010/6/1 Kissue Kissue
> Hi Folks,
>
> i have a requirement to login user automatically from another application
> into my appfuse application. Say from first application, user submits
> username and password and is sent to m
Hi Folks,
i have a requirement to login user automatically from another application
into my appfuse application. Say from first application, user submits
username and password and is sent to my appfuse application and user is
automatically authenticated and the home page is displayed.
I have trie
Thanks!!
taltun wrote:
>
> Hi,
>
> I'm using Struts 2 moduler..
>
> How is this possible:
>
> I have a link
> http://localhost:8080/[EMAIL PROTECTED]&password=45646asasaASDFasdffasdf3423
>
> When the above action mapping "changePassword.html..." is invoked I want
> the user to be logged in
If you look in SignupAction, you should see the code that can be used
to log a person in.
http://source.appfuse.org/browse/appfuse/trunk/web/struts/src/main/java/org/appfuse/webapp/action/SignupAction.java?r=trunk
You should be aware that any GET request with a password in it is a
security risk a
Hi,
I'm using Struts 2 moduler..
How is this possible:
I have a link
http://localhost:8080/[EMAIL PROTECTED]&password=45646asasaASDFasdffasdf3423
When the above action mapping "changePassword.html..." is invoked I want the
user to be logged in automaticly.
Please an detail example describing
I figured it out. You can do something like this:
Authentication auth = new UsernamePasswordAuthenticationToken(user,
user.getPassword(),
user.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(auth);
When you create the Authentication object and specify the gratedAu
I think the code you're referring to is:
// log user in automatically
Authentication auth = new
UsernamePasswordAuthenticationToken(user.getUsername(),
user.getConfirmPassword());
try {
ProviderManager authenticationManager = (ProviderManager)
getBean("authenticationManager");
If you look in SignupFormController, you can see the code that's used
to programmatically login the user. Maybe you can use this?
Matt
On Dec 5, 2007, at 7:37 AM, Zakir wrote:
Hello experts.
To preface, I am using Acegi 1.9.4 with Spring.
Is there any way I can log a user in automatically
Hello experts.
To preface, I am using Acegi 1.9.4 with Spring.
Is there any way I can log a user in automatically without their password?
Here is my intended process flow:
1. user signs up to the site, and fills in all the details (email, password,
name, etc.)
2. system saves the user info (inc
11 matches
Mail list logo