UserRedirectRequiredException instead of AccessTokenRequiredException?
After upgrading the RC2a, the redirect does not work in my project (I must admit that things that we do in our system are not that simple as the tonr/sparklr....).
However, till now, when our client-app tried to reach the protected resource, and token was not available, he threw AccessTokenRequiredException and transfer in the ctor an instance of AuthorizationCodeResourceDetails (AFAIK this way the filter Oauth2ClientContextFilter who catched this exception could invoke the redirect). The interesting thing is, that in M6, this filter used to look for AccessTokenRequiredException, and now in RC2a I see that he searches for UserRedirectRequiredException! the filter code is:
Code:
UserRedirectRequiredException redirect = (UserRedirectRequiredException) throwableAnalyzer.getFirstThrowableOfType(UserRedirectRequiredException.class, causeChain);
Can you please say a few words about this change? why did you change it, etc. who throws this exception in the oAuth2 implementation? when we still use AccessTokenRequiredException? should I now throw the "redirectEx" instead of the "accessTokenRequiredEx"?