Eclipse Tractus-x Managed Identity Wallet UI application
This is a UI application to access APIs of Eclipse Tractus-x Managed Identity Wallet
- Node with version >= v16.16
- Yarn (Package Manager) >=1.22
- A managed identity wallet must be running
- Keycloak must be running and configured correctly
- MIW and UI applications must be using the same keycloak
- Allowed web origin must be added in keycloak public client
- CORS must be enabled in the managed identity wallet application
-
Go to dev-assets folder and run docker compose file, this will run keycloak and import
miw_test
realm with the needed configuration -
Test keycloak on http://localhost:28080
-
There will be 2 user created as below:
-
Username: catena-x
password: password
bpn: BPNL000000000000
This user acts as the base wallet
-
Username: user1
password: password
bpn : BPNL000000000001
this user act as normal user(any business partner, you can create wallet using this BPN)
-
- Enable CORSS in MIW application by adding the below code in
SecurityConfig.java
@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3004")); //changes as per your port and host name
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "OPTIONS", "PUT", "DELETE"));
configuration.setAllowedHeaders(
List.of("X-Requested-With", "X-HTTP-Method-Override", "Content-Type", "Authorization", "Accept",
"Access-Control-Allow-Credentials", "Access-Control-Allow-Origin"));
configuration.setAllowCredentials(true);
//configuration.addAllowedHeader("Authorization");
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
return source;
}
- Set keycoak related setting application.yaml.
- Start application
- Update values in .env.local as per needed
- Start the application using
yarn start
MIW_demo.mp4
Distributed under the Apache 2.0 License. See LICENSE for more information.