Hi,
A login component is not included for now, during testing I've used regular j_acegi_security_check url. When I was thinking about a login component, I've decided not to implement because it has a gui and I must add strong customization features like styles, labels, layout and etc, even if I do, I doubt that will satisfy user's requirements in the end.
Also logging with Acegi using a JSF action is not so hard, I came across to this example;
public String doLoginButtonAction() {
String result = null;
Authentication authReq = new UsernamePasswordAuthenticationToken(userName, password);
Authentication auth = null;
try {
auth = authenticationManager.authenticate(authReq);
} catch (AuthenticationException e) {
try {
auth = authenticationManager.authenticate(authReq);
} catch (AuthenticationException e) {
//...
}
if (auth != null) {
result = "success";
} else {
result = "failure" ;
}
}
result = "success";
} else {
result = "failure" ;
}
}
Regards,
Cagatay Civici,
On 1/19/06, Enrique Medina <[EMAIL PROTECTED]> wrote:
Hi Richard,
That's what I meant in my previous email. Now I use a JSF page, doing some hooks to be able to call my bean and also login with Acegi, so I was wondering how did they solved it...
2006/1/19, Richard Wallace <[EMAIL PROTECTED]>:Very cool!
What about a component for handling user logins? Or do you use a
regular jsp/html page for submitting a form to the
j_acegi_security_check url (or whatever your filter processing url might
be)?
Cagatay Civici wrote:
> Hi,
>
> I've implemented custom jsf components that can be used to integrate
> Acegi into JSF. Acegi has built-in JSP tags for securing components
> but no support for JSF, my aim is to do the same thing for the JSF
> environment.
>
> Related information can be found at my blog;
> http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the
>
>
> I've released the component in sourceforge jsf-comp. The component is
> under Apache License.
> http://sourceforge.net/projects/jsf-comp/
>
> If you are planning to use JSF-Spring-Acegi together in your
> applications, this component could be a possible solution.
>
> Regards,
>
> Cagatay Civici

