From 79d5bf04488477296c07c151b455623d7b023e58 Mon Sep 17 00:00:00 2001
From: Nitin Vavdiya <nitin.vavdiya@smartsensesolutions.com>
Date: Fri, 2 Jun 2023 16:09:32 +0530
Subject: [PATCH] feat: readm changes and gradle fix

---
 README_did_web.md                   | 13 ++++++++-----
 build.gradle                        |  6 +++---
 dev-assets/did-web/dev.env          |  6 +++++-
 src/main/resources/application.yaml |  4 ++--
 4 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/README_did_web.md b/README_did_web.md
index 56856489d..8f51ca75a 100644
--- a/README_did_web.md
+++ b/README_did_web.md
@@ -24,13 +24,16 @@ Following tools the MIW development team used successfully:
 1. Run keycloak and database server using [docker-compose.yaml](dev-assets%2Fdid-web%2Fdocker-compose.yaml)
 2. Connect database and create miw database and user to access the database
 3. Update DB_USER_NAME, DB_PASSWORD, and DB_NAME in  [dev.env](dev-assets%2Fdid-web%2Fdev.env)
-4. Setup [dev.env](dev-assets%2Fdid-web%2Fdev.env) values either in application.yaml or in IDE
-5.
+4. Create personal access token(classic) with `read:packages` access (ref: https://github.com/settings/tokens/new)
+5. set ORG_GRADLE_PROJECT_githubUserName and ORG_GRADLE_PROJECT_githubToken values
+   in [dev.env](dev-assets%2Fdid-web%2Fdev.env)
+6. Setup [dev.env](dev-assets%2Fdid-web%2Fdev.env) values either in application.yaml or in IDE
+7.
 Run [ManagedIdentityWalletsApplication.java](src%2Fmain%2Fjava%2Forg%2Feclipse%2Ftractusx%2Fmanagedidentitywallets%2FManagedIdentityWalletsApplication.java)
 in IDE
-4. Open API doc on http://localhost:8080
-5. Click on Authorize on swagger UI and on the dialog click again on Authorize.
-6. Login with username=catena-x and password=password
+8. Open API doc on http://localhost:8080
+9. Click on Authorize on swagger UI and on the dialog click again on Authorize.
+10. Login with username=catena-x and password=password
 
 ## Test Coverage
 
diff --git a/build.gradle b/build.gradle
index 79a362f4b..20ecade5f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -22,13 +22,13 @@ repositories {
 		url = uri("https://repo.danubetech.com/repository/maven-public")
 	}
 	maven { url 'https://jitpack.io' }
-	/*maven {
+	maven {
 		url = uri("https://maven.pkg.github.com/catenax-ng/product-lab-ssi")
 		credentials {
 			username = "${githubUserName}"
 			password = "${githubToken}"
 		}
-	}*/
+	}
 }
 
 ext {
@@ -48,7 +48,7 @@ dependencies {
 	implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}"
 	implementation group: 'com.smartsensesolutions', name: 'commons-dao', version: '0.0.2'
 	implementation 'org.liquibase:liquibase-core'
-	implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.4'
+	implementation 'org.eclipse.tractusx.ssi.lib:cx-ssi-lib:0.0.4'
 	runtimeOnly 'org.postgresql:postgresql'
 	compileOnly 'org.projectlombok:lombok'
 	developmentOnly 'org.springframework.boot:spring-boot-devtools'
diff --git a/dev-assets/did-web/dev.env b/dev-assets/did-web/dev.env
index 0a0deb64a..f408d87dd 100644
--- a/dev-assets/did-web/dev.env
+++ b/dev-assets/did-web/dev.env
@@ -22,4 +22,8 @@ VC_EXPIRY_DATE=01-01-2025
 SUPPORTED_FRAMEWORK_VC_TYPES=cx-behavior-twin=Behavior Twin,cx-pcf=PCF,cx-quality=Quality,cx-resiliency=Resiliency,cx-sustainability=Sustainability,cx-traceability=ID_3.0_Trace
 KEYCLOAK_REALM=miw_test
 KEYCLOAK_CLIENT_ID=miw_private_client
-AUTH_SERVER_URL:http://localhost:8081
\ No newline at end of file
+AUTH_SERVER_URL:http://localhost:8081
+
+## Github user name
+ORG_GRADLE_PROJECT_githubUserName=
+ORG_GRADLE_PROJECT_githubToken=
diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml
index e2edc6d13..97ac45cdf 100644
--- a/src/main/resources/application.yaml
+++ b/src/main/resources/application.yaml
@@ -60,11 +60,11 @@ management:
       enabled: true
 
 miw:
-  host: ${MIW_HOST_NAME:localhost}
+  host: ${MIW_HOST_NAME:1d90-203-129-213-107.ngrok-free.app}
   encryptionKey: ${ENCRYPTION_KEY:Woh9waid4Ei5eez0aitieghoow9so4oe}
   authorityWalletBpn: ${AUTHORITY_WALLET_BPN:BPNL000000000000}
   authorityWalletName: ${AUTHORITY_WALLET_NAME:Catena-X}
-  authorityWalletDid: ${AUTHORITY_WALLET_DID:localhost:BPNL000000000000}
+  authorityWalletDid: ${AUTHORITY_WALLET_DID:1d90-203-129-213-107.ngrok-free.app:BPNL000000000000}
   vcContexts: ${VC_SCHEMA_LINK:https://www.w3.org/2018/credentials/v1, https://raw.githubusercontent.com/catenax-ng/product-core-schemas/main/businessPartnerData}
   vcExpiryDate: ${VC_EXPIRY_DATE:01-01-2025} #dd-MM-yyyy ie.  01-01-2025 expiry date will be 2024-12-31T18:30:00Z in VC
   supportedFrameworkVCTypes: ${SUPPORTED_FRAMEWORK_VC_TYPES:cx-behavior-twin=Behavior Twin,cx-pcf=PCF,cx-quality=Quality,cx-resiliency=Resiliency,cx-sustainability=Sustainability,cx-traceability=ID_3.0_Trace}