This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
auth.getAuthorizationRequest().getClientId() is nullPage Title Module
If you put an object in a controller method parameter and no extra declarations to tell what Spring to do it will just create a new instance from the default constructor, so that probably explains why it is not setting the client id. What did you need it for? Is this a request that is authenticated through the OAuth2 authentication processing filter? If so then the Spring Security context should have an instance of OAuth2Authentication in it (and you can get that in a controller method by asking for a Principal).