Search:

Type: Posts; User: newreaders; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    3,920

    You can authenticate the user behinds the scenes...

    You can authenticate the user behinds the scenes by setting the UsernamePasswordAuthenticationToken the the security context using SecurityContextHolder.getContext().setAuthentication(..)

    You can...
  2. Replies
    2
    Views
    4,848

    Are you using the same JRE/JDK (version and...

    Are you using the same JRE/JDK (version and provider) on both systems?
  3. Just use newline? From: ...

    Just use newline?

    From:



    <property name="text">
    <value><![CDATA[Dear Valued Customer: We received your order<br/>\n\.<br/><br/>If you have any questions, please call us...
  4. Replies
    3
    Views
    1,188

    If you're using Log4J, you could use NDC or MDC...

    If you're using Log4J, you could use NDC or MDC to attache additional information to your log statement without appending the information to the logger yourself.

    In your case, I think the session...
  5. Replies
    3
    Views
    3,920

    You don't need to use AuthenticationManager to...

    You don't need to use AuthenticationManager to authenticate the user programatically, you can just set the UsernamePasswordAuthenticationToken to the security context.

    If you really want to use...
  6. Replies
    2
    Views
    1,187

    You could extend AuthenticationProcessingFilter...

    You could extend AuthenticationProcessingFilter and overwrite onSuccessfulAuthentication(..) to set the relavant data to the session.

    Follow the Reference on how to register the custom filter, see...
  7. Replies
    1
    Views
    703

    You could create a filter that sets the request...

    You could create a filter that sets the request URL to the HttpRequest. You can then access it when required.

    This is also a way to get around the forwarding issue in Web frameworks.
  8. Replies
    1
    Views
    705

    1. Implement your own PersistentTokenRepository...

    1. Implement your own PersistentTokenRepository and inject it to PersistentTokenBasedRememberMeServices.

    2. I doubt you would face any problems with the indexing.
  9. There's a bug raised for this ...

    There's a bug raised for this

    http://jira.springframework.org/browse/SEC-1081

    Is there a work around in the mean time?
  10. Token validity seconds in PersistentTokenBasedRememberMeServices

    Hi

    Anyone knows how to set the tokenValiditySeconds to be 30 days, i.e. 2592000 seconds? PersistentTokenBasedRememberMeServices doesn't seem to accept anything more than a day?

    Thanks
  11. It's just that there were no coding standards at...

    It's just that there were no coding standards at where I work, so lots of properties have inconsistent names.

    So, the first two characters of the property name have to be lower cases?

    Thanks.
  12. NotReadablePropertyException: Invalid property 'Email' of bean class

    Hi

    Could someone please help me with the following problem?

    My command bean:



    public class Email implements Serializable {
    private String Email;
  13. Replies
    1
    Views
    1,076

    I have fixed the problem by setting the...

    I have fixed the problem by setting the KeepAsIsErrorCodeConverter.

    Thanks
  14. Replies
    1
    Views
    1,076

    Bean validation & message sources [Solved]

    Hi

    Could someone please help me find out why bean validation doesn't pickup the message resources I defined in my application context?

    My message source declaration:



    <bean...
  15. When I manually validate a user I didn't pass in...

    When I manually validate a user I didn't pass in the UserDetails object to the UsernamePasswordAuthenticationToken. :)

    All good now, thanks.
  16. Replies
    1
    Views
    1,436

    AuthenticationException & Struts

    Hi

    I would like to redirect users to the login page when there is an AuthenticationException in my Struts actions, how can I do this?

    Thanks,
    Ben
  17. SecurityContextHolderAwareRequestFilter & UserDetails

    Hi

    I just upgraded from Acegi 0.8.0 to 0.9.0, so far things are working great except that when I use the following code:

    Authentication auth = (Authentication) request.getUserPrincipal();...
  18. Replies
    2
    Views
    4,826

    Excellent, exactly what I needed, thanks. :P

    Excellent, exactly what I needed, thanks. :P
  19. Replies
    2
    Views
    4,826

    Hibernate - evict collection

    Hi

    I am using Spring 1.2 and Hibernate 3.0.5.

    I would like to evict a collection in a class, how can I do that with HibernateTemplate or in HibernateCallback?

    Hibernate's SessionFactoryImpl...
  20. Yeah, why I didn't think about it, acegi is part...

    Yeah, why I didn't think about it, acegi is part of Spring afterall and it uses beans. :lol:

    Thanks
  21. I would like to use a manager in...

    I would like to use a manager in AuthenticationProcessingFilter, i.e. calling a Spring bean defined in the ApplicationContext.

    In normal Filter, I usually use the following code to call a bean:
    ...
  22. Replies
    10
    Views
    8,168

    Acegi + EhCache in cluster environment

    Can I use Acegi with EhCache in a clustered environment? EhCache doesn't support cluster, so should I implement the UserCache to use a cluster-aware caching (TreeCache or Swarmcache)?

    Thanks
  23. Replies
    3
    Views
    2,542

    I passed an encrypted password to the...

    I passed an encrypted password to the authenticator instead of a plaintext password and as a result I could not access to the restricted pages. Even though I wasn't authenticated, the...
  24. applicationContext in AuthenticationProcessingFilter

    Hi

    How can I get the ApplicationContext in AuthenticationProcessingFilter?

    Acegi uses IoC container lifecycle services by default so that means it doesn't call the init() and destroy() methods....
  25. Replies
    3
    Views
    960

    Bean initialization order

    Hi

    Can I set the order of how beans are initialized?

    I have some beans depend on the other beans within the applicationcontext, sometimes I get NullPointerException when I startup my app and...
Results 1 to 25 of 38
Page 1 of 2 1 2