Merge Add hasAnyRole method in AuthorizePayloadsSpec.Access
This commit is contained in:
@@ -104,8 +104,12 @@ import java.util.List;
|
||||
* }
|
||||
* </pre>
|
||||
* @author Rob Winch
|
||||
<<<<<<< HEAD
|
||||
* @author Jesús Ascama Arias
|
||||
* @author Luis Felipe Vega
|
||||
=======
|
||||
* @author Manuel Tejeda
|
||||
>>>>>>> 9926ad68b8f4e465f6c5243a8ff993fbf9d1b7a2
|
||||
* @since 5.2
|
||||
*/
|
||||
public class RSocketSecurity {
|
||||
@@ -321,6 +325,10 @@ public class RSocketSecurity {
|
||||
return access(AuthorityReactiveAuthorizationManager.hasRole(role));
|
||||
}
|
||||
|
||||
public AuthorizePayloadsSpec hasAnyRole(String... roles) {
|
||||
return access(AuthorityReactiveAuthorizationManager.hasAnyRole(roles));
|
||||
}
|
||||
|
||||
public AuthorizePayloadsSpec permitAll() {
|
||||
return access((a, ctx) -> Mono
|
||||
.just(new AuthorizationDecision(true)));
|
||||
|
||||
Reference in New Issue
Block a user