Skip to content

Commit

Permalink
Filter models as per RBAC rules
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Ghazanfar Ali Danish <[email protected]>
  • Loading branch information
mdanish98 committed Dec 23, 2024
1 parent 58cb7bb commit 8188842
Show file tree
Hide file tree
Showing 27 changed files with 42 additions and 1,560 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/basyx_test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and Test BaSyx

on:
push:
branches: [ temp-feature/filter-dyn-rbac ]
pull_request:
branches: [ main ]
paths-ignore:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docker_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
name: Build and Start Docker Images

on:
push:
branches: [ temp-feature/filter-dyn-rbac ]
pull_request:
branches: [ main ]
paths-ignore:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@
<dependency>
<groupId>org.eclipse.digitaltwin.basyx</groupId>
<artifactId>basyx.authorization.rules.rbac.backend.inmemory</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.digitaltwin.basyx</groupId>
<artifactId>basyx.authorization.rules.rbac.backend.submodel</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@

import org.eclipse.digitaltwin.basyx.aasenvironment.AasEnvironment;
import org.eclipse.digitaltwin.basyx.aasenvironment.feature.authorization.rbac.AasEnvironmentTargetPermissionVerifier;
import org.eclipse.digitaltwin.basyx.aasenvironment.feature.authorization.rbac.backend.submodel.AasEnvironmentTargetInformationAdapter;
import org.eclipse.digitaltwin.basyx.aasenvironment.preconfiguration.AasEnvironmentPreconfigurationLoader;
import org.eclipse.digitaltwin.basyx.authorization.CommonAuthorizationProperties;
import org.eclipse.digitaltwin.basyx.authorization.rbac.RbacPermissionResolver;
import org.eclipse.digitaltwin.basyx.authorization.rbac.RbacStorage;
import org.eclipse.digitaltwin.basyx.authorization.rbac.SimpleRbacPermissionResolver;
import org.eclipse.digitaltwin.basyx.authorization.rbac.RoleProvider;
import org.eclipse.digitaltwin.basyx.authorization.rbac.TargetPermissionVerifier;
import org.eclipse.digitaltwin.basyx.authorization.rules.rbac.backend.submodel.TargetInformationAdapter;
import org.eclipse.digitaltwin.basyx.conceptdescriptionrepository.feature.authorization.rbac.backend.submodel.CDTargetInformationAdapter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -70,12 +67,5 @@ public RbacPermissionResolver<AasEnvironmentTargetInformation> getAasEnvironment
public static AasEnvironmentPreconfigurationLoader getAuthorizedAasEnvironmentPreconfigurationLoader(ResourceLoader resourceLoader, List<String> pathsToLoad) {
return new AuthorizedAASEnvironmentPreconfigurationLoader(resourceLoader, pathsToLoad);
}

@Bean
@Primary
public TargetInformationAdapter getAasEnvInformationAdapter() {

return new AasEnvironmentTargetInformationAdapter();
}

}

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8188842

Please sign in to comment.