use of org.forgerock.openam.core.rest.session.AnyOfAuthzModule in project OpenAM by OpenRock.
the class CoreRestGuiceModule method getSessionResourceAuthzModule.
@Provides
@Inject
public AnyOfAuthzModule getSessionResourceAuthzModule(SSOTokenManager ssoTokenManager, PrivilegeAuthzModule privilegeAuthzModule, AdminOnlyAuthzModule adminOnlyAuthzModule) {
SessionResourceAuthzModule sessionResourceAuthzModule = new SessionResourceAuthzModule(ssoTokenManager);
List<CrestAuthorizationModule> authzList = new ArrayList<>(3);
authzList.add(adminOnlyAuthzModule);
authzList.add(privilegeAuthzModule);
authzList.add(sessionResourceAuthzModule);
return new AnyOfAuthzModule(authzList);
}
Aggregations