Announcement Announcement Module
Collapse
No announcement yet.
What can we do after authentication successfully using openID? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What can we do after authentication successfully using openID?

    What can we do after authentication successfully using openID?
    I want to use Spring openID module to support OpenID login, I also checkout the example of this demo, and I have a question:
    When OpenID provider pass the authentication, after that, I want to get the attribute from OP and saved into DB, and I can use following for example:
    Code:
    Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    
    if (principal instanceof UserDetails) {
      String username = ((UserDetails)principal).getUsername();
    } else {
      String username = principal.toString();
    }
    so the question is:
    What class should I write using above code, and how to configure it in application-security.xml?

    another question:
    If the attribute we wanted can't get from OP, I want to redirect to one page which force the user complete the info we requried, my question is how can we fully control target URL after login?

  • #2
    In brief: How to add our own logic into spring openID?

    Now it 's controled by DelegatingFilterProxy, it supply about 10 filters.

    Comment


    • #3
      or we can say how to override the filter or provider?

      Comment


      • #4
        http://static.springsource.org/sprin...ew.html#d4e731

        Comment

        Working...
        X