Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,245

    thank you, I can get the SecurityContext out of...

    thank you, I can get the SecurityContext out of the session via calling getAttribute("SPRING_SECURITY_CONTEXT"). Then I can access my custom userdetails object, too.

    Thank you for your help
  2. Replies
    4
    Views
    1,245

    OK this works, but I need the Authentication...

    OK this works, but I need the Authentication object of the current SecurityContext, which seems to be null already, when the sessionDestroyed method is called. I hope there is a way for this?
  3. Replies
    4
    Views
    1,245

    execute additional code on session timeout

    Hi,

    is there a way of executing additional code when a page has been requested, but the session has timed out?
    I have configured my application to redirect the user to the login page using the...
  4. Replies
    6
    Views
    1,978

    Well, then I will have to put all my methods back...

    Well, then I will have to put all my methods back into one controller class (I've separated them into 2 groups, requests which require authentication, requests which do not require authentication;...
  5. Replies
    6
    Views
    1,978

    Thank you for your corrections. I do this...

    Thank you for your corrections.



    I do this because I want initial values to be displayed in the form. All input fields are not empty when showing the page. I don't think this is wrong then,...
  6. Replies
    6
    Views
    1,978

    @ModelAttribute + form, questions

    Hi,

    I need to understand the function of @ModelAttribute annotation, but it's quite difficult for me.
    I have a form where the user can enter address + password (to store these, I have a class...
  7. Replies
    13
    Views
    1,474

    thank you for the link, i'll take the first...

    thank you for the link, i'll take the first method now, seems to work good. one last question: can i reuse ModelAndView objects? i.e. i create an instance for a page at controller initialisation and...
  8. Replies
    13
    Views
    1,474

    OK i have made a test now comparing both calls...

    OK i have made a test now comparing both calls (via SecurityContext and via getUserPrincipal) and i figured out that there is everything ok ;)
    i think the problem is, that i have a reference in my...
  9. Replies
    13
    Views
    1,474

    ah ok it runs on tomcat 7.0.6. you mean i...

    ah ok it runs on tomcat 7.0.6.


    you mean i should not change such an object during runtime?


    i don't have a custom authentication manager, login authentication is completely done by spring....
  10. Replies
    13
    Views
    1,474

    what is a servlet container? spring is version...

    what is a servlet container?

    spring is version 3.0.5
    spring security is version 3.0.4
  11. Replies
    13
    Views
    1,474

    thank you already for your help; i'll post the...

    thank you already for your help; i'll post the code below. i do not use the setAuthentication method, everything is managed by spring except that i have written a custom userdetails and...
  12. Replies
    13
    Views
    1,474

    well i think the problem is i want to display the...

    well i think the problem is i want to display the name of the currently logged in user in my jsp files. therefore i use the SecurityContextHolder.getContext().getAuthentication().getPrincipal()...
  13. Replies
    13
    Views
    1,474

    how to handle multiple logged in users?

    Hi,

    I am currently searching a solution how i can handle multiple users who are logged in to my app simultanously. The problem is, if I log in as let's say "bob", the object in the securitycontext...
  14. how to tell spring a FIX post-login page (target-url)

    Hey,

    when I want to access a secured page of my application (via entering direct URL into the browser), Spring Security displays my login page and, after successful login, the page I have...
  15. why should the frames be public? they should be...

    why should the frames be public? they should be visible only when logged in. now i've written a controller which returns the view when a GET-request for the frames is done, but it does not work, the...
  16. Configuration problem with simple login app

    Hi all,

    I am completely new to Spring and Spring Security, but I have to learn it for my bachelor thesis.
    So far I have created a simple login application with a custom login page. When login is...
Results 1 to 16 of 16