Skip to content

Commit

Permalink
Fix attribute name age_over_18 in PID mso_mdoc issuance
Browse files Browse the repository at this point in the history
  • Loading branch information
VAFEIADIS Nikos committed Jan 9, 2024
1 parent 0d3224c commit 5d408d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions http-client.env.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"issuer_authorizationServer": "https://keycloak-eudi.netcompany-intrasoft.com/realms/pid-issuer-realm",
"token_endpoint": "https://keycloak-eudi.netcompany-intrasoft.com/realms/pid-issuer-realm/protocol/openid-connect/token",
"userinfo_endpoint": "https://keycloak-eudi.netcompany-intrasoft.com/realms/pid-issuer-realm/protocol/openid-connect/userinfo",
"issuer_publicUrl": "http://localhost:8080",
"credential_endpoint": "http://localhost:8080/wallet/credentialEndpoint",
"issuer_publicUrl": "https://eudi.netcompany-intrasoft.com/pid-issuer",
"credential_endpoint": "https://eudi.netcompany-intrasoft.com/pid-issuer/wallet/credentialEndpoint",
"request_scope": "openid eu.europa.ec.eudiw.pid_mso_mdoc eu.europa.ec.eudiw.pid_vc_sd_jwt",
"user_username": "babis",
"user_password": "babis",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal fun createMsoMdocReq(
pid.givenNameBirth?.let { put("birth_given_name", it.value) }
pid.gender?.let { put("gender", it.value.toInt()) }
pid.nationality?.let { put("nationalities", JsonArray(listOf(JsonPrimitive(it.value)))) }
put("is_over_18", pid.ageOver18)
put("age_over_18", pid.ageOver18)
pid.ageBirthYear?.let { put("age_birth_year", it.value) }
put("issuance_date", pidMetaData.issuanceDate.toString())
put("expiry_date", pidMetaData.expiryDate.toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GetPidDataFromAuthServer(
expiryDate = issuanceDate.plusDays(100),
issuanceDate = issuanceDate,
issuingCountry = issuerCountry,
issuingAuthority = IssuingAuthority.AdministrativeAuthority(" Foo bat administrative authority"),
issuingAuthority = IssuingAuthority.AdministrativeAuthority("Foo bar administrative authority"),
documentNumber = null,
administrativeNumber = null,
issuingJurisdiction = null,
Expand Down

0 comments on commit 5d408d0

Please sign in to comment.