Custom UserService for OpenID
Hi guys,
I am fairly new to Spring, so don't be mad at me. What I want to achieve is a form that allows the user to login with one of these:
- custom username/password stored in my DB
- openid identity.
I already implemented a custom user service for my JDBC login that populates my custom User principal (I need to store some extra fields from the DB), but I have signnificant troubles implementing user-service for the openID authentication provider. For now I have placed this
<user-service id="userService">
<user name="http://user.myopenid.com/" password="notused" authorities="ROLE_USER" />
</user-service>
in my security.xml but as far as I understand this would work only for 1 user called 'user' and it will not populate my custom pruincipal.
If you could point me to an article on how to implement the custom user service for openID that would be great.
Thanks a lot.