Jul 13th, 2012, 04:11 AM
Additional info in authentication details
First of all , congratulations for this great framework (spring-security-oauth2)
I'm starting to play with it and my first approach is to protect a rest API implemented with Spring MVC. I'd like to attach additional info to the authentication provided by the OAuth authentication server in order to read that info from some methods in the MVC controller. I'm thinking to extend OAuth2AuthenticationDetailsSource in order to include the additional data in authentication details and provide this implementation to OAuth2AuthenticationProcessingFilter.
Please confirm me if this approach is right and please, provide a minimal example for configuring it.