Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
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).