santam85 commented on PR #14082:
URL: https://github.com/apache/camel/pull/14082#issuecomment-2100401620
Tested the snapshot locally with success using the following policy
definition:
```
@Bean(RolePolicy.ADMIN)
public AuthorizationPolicy
authorizationPolicyAdmin(AuthenticationManager authenticationManager) {
SpringSecurityAuthorizationPolicy authorizationPolicy = new
SpringSecurityAuthorizationPolicy();
authorizationPolicy.setAuthenticationManager(authenticationManager);
authorizationPolicy.setAuthorizationManager(AuthorityAuthorizationManager.hasRole("ADMIN"));
return authorizationPolicy;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]