I am trying to get to them by calling SecurityContextHolder.getContext().getAuthenticati on() but apparently the Authentication is empty at this point.
I am trying to get to them by calling SecurityContextHolder.getContext().getAuthenticati on() but apparently the Authentication is empty at this point.
Also, make sure that you check after the user has returned from the OpenID provider. Also note that the actual availability of attributes varies widely by provider, so depending on the provider the user is authenticating with, you may or may not get attributes you want (e.g. email).
Peter Mularien | Blog
Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
SCJP 5, Oracle DBA
Any postings are my own opinion, and should not be attributed to my employer or clients.
That sounds promising! How would I have to configure this?
This is a snippet of my current context:
An implentation of AuthenticationUserDetailsService is not accepted as an authentication provider.Code:<authentication-manager> <authentication-provider user-service-ref="combinedUserDetailsService"/> </authentication-manager>
Kees de Kooter
www.boplicity.net
Thanks Blaine,
I agree that I should do my own homework ;-). However the openid sample app does not give me a clue of how to configure this. No AuthenticationUserDetailsService in sight.
Please note that I am using Spring Security 3.0.5.
Last edited by Kees de Kooter; Mar 23rd, 2011 at 03:09 PM.
Kees de Kooter
www.boplicity.net
Giving you the benefit of the doubt-- get the sample from the tip of the master branch. Not 100% that everything will work like in 3.0.5, but I suspect it's very close. If you still say it doesn't show how to configure and you don't see an AuthenticationUserDetailsService, you are not expending as much effort as I have expended in answering you.
Last edited by blaine; Mar 23rd, 2011 at 03:27 PM. Reason: inserted word for clarity