File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed
examples/BaSyxOperationDelegation
src/main/java/org/eclipse/digitaltwin/basyx/examples/operationdelegation/configuration Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 11version : ' 3'
22services :
33 aas-env :
4- image : eclipsebasyx/aas-environment:2.0.0-milestone-03
4+ image : eclipsebasyx/aas-environment:2.0.0-milestone-04
55 container_name : aas-env
66 volumes :
77 - ./aas:/application/aas
@@ -15,23 +15,23 @@ services:
1515 sm-registry :
1616 condition : service_healthy
1717 aas-registry :
18- image : eclipsebasyx/aas-registry-log-mem:2.0.0-milestone-03
18+ image : eclipsebasyx/aas-registry-log-mem:2.0.0-milestone-04
1919 container_name : aas-registry
2020 ports :
2121 - ' 8082:8080'
2222 volumes :
2323 - ./basyx/aas-registry.yml:/workspace/config/application.yml
2424 restart : always
2525 sm-registry :
26- image : eclipsebasyx/submodel-registry-log-mem:2.0.0-milestone-03
26+ image : eclipsebasyx/submodel-registry-log-mem:2.0.0-milestone-04
2727 container_name : sm-registry
2828 ports :
2929 - ' 8083:8080'
3030 volumes :
3131 - ./basyx/sm-registry.yml:/workspace/config/application.yml
3232 restart : always
3333 aas-web-ui :
34- image : eclipsebasyx/aas-gui:v2-240801
34+ image : eclipsebasyx/aas-gui:v2-241114
3535 container_name : aas-ui
3636 ports :
3737 - ' 3000:3000'
@@ -49,7 +49,7 @@ services:
4949 build :
5050 context : ./exampleOperationService
5151 dockerfile : Dockerfile
52- container_name : example-operation
52+ container_name : example-operation-service
5353 ports :
5454 - ' 8087:8080'
5555 restart : always
Original file line number Diff line number Diff line change 1616 <description >BaSyx Operation Delegation Example</description >
1717 <properties >
1818 <java .version>17</java .version>
19- <aas4j-version >1.0.1 </aas4j-version >
19+ <aas4j-version >1.0.2 </aas4j-version >
2020 </properties >
2121 <dependencies >
2222 <dependency >
4949 <dependency >
5050 <groupId >org.eclipse.digitaltwin.basyx</groupId >
5151 <artifactId >basyx.submodelrepository-client</artifactId >
52- <version >2.0.0-milestone-03 </version >
52+ <version >2.0.0-milestone-04 </version >
5353 </dependency >
5454
5555 </dependencies >
Original file line number Diff line number Diff line change 1+ package org .eclipse .digitaltwin .basyx .examples .operationdelegation .configuration ;
2+
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+ import org .springframework .security .config .Customizer ;
6+ import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
7+ import org .springframework .security .web .SecurityFilterChain ;
8+
9+ @ Configuration
10+ public class SecurityConfiguration {
11+ @ Bean
12+ public SecurityFilterChain securityFilterChain (HttpSecurity httpSecurity ) throws Exception {
13+ httpSecurity .authorizeHttpRequests (auth -> auth .anyRequest ().permitAll ()).httpBasic (Customizer .withDefaults ()).csrf (c -> c .ignoringRequestMatchers ("/operation-invocation" ));
14+
15+ return httpSecurity .build ();
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments