use of org.ff4j.web.api.security.FF4JSecurityContextAuthenticationManager in project ff4j by ff4j.
the class SecuredFF4JResourceTestIT method setUp.
/**
* {@inheritDoc}
*/
@Override
@Before
public void setUp() throws Exception {
super.setUp();
// Bridge security between ff4j and jersey
ff4j.setAuthorizationsManager(new FF4JSecurityContextAuthenticationManager());
if (assertFF4J == null) {
assertFF4J = new AssertFf4j(ff4j);
}
}
use of org.ff4j.web.api.security.FF4JSecurityContextAuthenticationManager in project ff4j by ff4j.
the class SecurityAuthenticationFilterTest method testAuthenticationManager.
@Test
public void testAuthenticationManager() {
FF4JSecurityContextAuthenticationManager mnger = new FF4JSecurityContextAuthenticationManager();
mnger.listAllPermissions();
mnger.getCurrentUserPermissions();
}
Aggregations