Search:

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

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    874

    What method and in which class should I override...

    What method and in which class should I override to direct user into correct page after login?
  2. Replies
    4
    Views
    874

    For logout I use link to...

    For logout I use link to /j_spring_security_logout.


    Is there any samples how to do that?
  3. Replies
    4
    Views
    874

    How to remember last visited page?

    How to after login enter the page which was visited last before logout?

    Here is security config:


    <security:http auto-config="true">
    <security:intercept-url pattern="/login.action"...
  4. Replies
    1
    Views
    653

    Last visited page problem

    Our application based on Spring Security & Struts 2 runs under tomcat 6.

    Here is security http config:

    <security:http auto-config="true">
    .....
    <security:form-login...
  5. Replies
    4
    Views
    1,057

    Method Security: default expression

    Is there possibility to set default security expression such as @PreAuthorize("hasRole('ROLE_USER')") for all methods in class or whole project?
  6. Thanks, it resolved the problem.

    Thanks, it resolved the problem.
  7. I'm using Spring Security 3.0.5. Context root is...

    I'm using Spring Security 3.0.5. Context root is /. Namespace for administration role is /admin.

    Exact steps are:
    1) I type http://localhost:8080/ and http://localhost:8080/login.action appears....
  8. Without Spring Security Filter Chain URLs work....

    Without Spring Security Filter Chain URLs work. Application based on Struts2.
    There are no errors on startup.
  9. I'm logined when I enter it. Even if I change...

    I'm logined when I enter it.

    Even if I change config to error-page="/login.action", I receive the same:
    HTTP Status 404 - /login.action
    The requested resource (/login.action) is not available.
  10. access-denied-handler error-page doesn't work

    Here are my configurations:

    <security:http auto-config="true">
    <security:intercept-url pattern="/login.action" filters="none"/>
    <security:intercept-url pattern="/js/**"...
  11. Replies
    24
    Views
    3,061

    Thanks to all. The debugging resolved the...

    Thanks to all. The debugging resolved the problem. It was my stupid inattention mistake.

    Also I have small question. To mark authentification error I use...
  12. Replies
    24
    Views
    3,061

    I receive ProviderNotFoundException: No...

    I receive ProviderNotFoundException: No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken:


    17:50:15,937 DEBUG FilterChainProxy:195...
  13. As I mentioned earlier, I want only simple...

    As I mentioned earlier, I want only simple mechanism for seruring URLs and methods.


    I handle login, logout myself.

    I guess AuthenticationManager is used only for login? Or I mistake?
  14. Replies
    24
    Views
    3,061

    Here are all my recent configurations: ...

    Here are all my recent configurations:

    web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    ...
  15. Is there possibility to use Spring Security without it's authentification mechanism?

    I only need to secure URLs and methods.

    My application has own difficult authentification method, and I can simply set the SecurityContext in this method:

    ...
  16. Replies
    24
    Views
    3,061

    Yes, but also I use

    Yes, but also I use <global-method-security pre-post-annotations="enabled" />


    That doesn't help.
  17. Replies
    24
    Views
    3,061

    I use your code, that you posted earlier with...

    I use your code, that you posted earlier with blank methods. I just added debug breakpoints there:


    public class MyAuthenticationProvider extends
    ...
  18. Replies
    24
    Views
    3,061

    Yes, it works. But I when I use custom...

    Yes, it works. But I when I use custom AuthenticationProvider, can't hit neither AuthenticationProvider.retrieveUser nor AuthenticationProvider.authenticate.
  19. Replies
    24
    Views
    3,061

    Maybe I understand something wrong... I guess I...

    Maybe I understand something wrong...
    I guess I must hit method AuthenticationProvider.retrieveUser (or AuthenticationProvider.authenticate) after posting request to to "/j_spring_security_check"...
  20. Replies
    24
    Views
    3,061

    MyAuthenticationProvider.supports??? What is it?...

    MyAuthenticationProvider.supports??? What is it? Can't find it in reference.

    Can you post links to samples with such implementations?
  21. Replies
    6
    Views
    936

    I mean, is there possibility to catch all...

    I mean, is there possibility to catch all AccessDeniedException's of all secured methods in one place?
  22. Default accessDecisionManager in FilterSecurityInterceptor

    There is a typical configuration example in reference:

    <bean id="filterSecurityInterceptor"
    class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor">
    <property...
  23. Replies
    24
    Views
    3,061

    Yes. I can't access secured urls, this means -...

    Yes. I can't access secured urls, this means - this filter works.
    But why I don't hit MyAuthenticationProvider?
  24. Replies
    24
    Views
    3,061

    Can't hit custom AuthenticationProvider

    I created custom AuthenticationProvider and post the request to "/j_spring_security_check" with parameters "j_username" and "j_password".
    But I don't hit this provider class. Why?

    Here is...
  25. Replies
    6
    Views
    936

    Thanks, and one more question: how to handle...

    Thanks,

    and one more question: how to handle all that AccessDeniedException's in one place of code?
Results 1 to 25 of 27
Page 1 of 2 1 2