Fix AuthorizationPayloadInterceptor order using PayloadInterceptorOrder.AUTHORIZATION

Fixes gh-7434
This commit is contained in:
Jesús Ascama 2019-09-17 18:51:31 -05:00 committed by Rob Winch
parent b09e9f1896
commit ceab56f764
1 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ import java.util.List;
* }
* </pre>
* @author Rob Winch
* @author Jesús Ascama Arias
* @since 5.2
*/
public class RSocketSecurity {
@ -282,7 +283,7 @@ public class RSocketSecurity {
protected AuthorizationPayloadInterceptor build() {
AuthorizationPayloadInterceptor result = new AuthorizationPayloadInterceptor(this.authzBuilder.build());
result.setOrder(PayloadInterceptorOrder.AUTHENTICATION.getOrder());
result.setOrder(PayloadInterceptorOrder.AUTHORIZATION.getOrder());
return result;
}