Skip to content

Commit

Permalink
Merge branch 'main' into fix/tmp_fix_license_in_apollo
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro authored Sep 2, 2024
2 parents 7b5ef57 + 5a7b950 commit 7a0e6e3
Show file tree
Hide file tree
Showing 34 changed files with 372 additions and 191 deletions.
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ inThisBuild(
Seq(
organization := "org.hyperledger",
scalaVersion := "3.3.3",
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
fork := true,
run / connectInput := true,
releaseUseGlobalVersion := false,
Expand Down Expand Up @@ -69,7 +70,7 @@ lazy val V = new {
val testContainersJavaKeycloak = "3.2.0" // scala-steward:off

val doobie = "1.0.0-RC5"
val quill = "4.8.4"
val quill = "4.8.5"
val flyway = "9.22.3"
val postgresDriver = "42.7.3"
val logback = "1.4.14"
Expand Down Expand Up @@ -124,6 +125,7 @@ lazy val D = new {
val jakartaJson: ModuleID = "org.glassfish" % "jakarta.json" % "2.0.1"
val ironVC: ModuleID = "com.apicatalog" % "iron-verifiable-credentials" % "0.14.0"
val scodecBits: ModuleID = "org.scodec" %% "scodec-bits" % "1.1.38"
val jaywayJsonPath: ModuleID = "com.jayway.jsonpath" % "json-path" % "2.9.0"

// https://mvnrepository.com/artifact/org.didcommx/didcomm/0.3.2
val didcommx: ModuleID = "org.didcommx" % "didcomm" % "0.3.2"
Expand Down Expand Up @@ -203,7 +205,8 @@ lazy val D_SharedJson = new {
D.jakartaJson,
D.ironVC,
D.scodecBits,
D.networkntJsonSchemaValidator
D.networkntJsonSchemaValidator,
D.jaywayJsonPath
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import org.hyperledger.identus.castor.core.service.DIDService
import org.hyperledger.identus.mercury.{AgentPeerService, DidAgent}
import org.hyperledger.identus.mercury.model.DidId
import org.hyperledger.identus.mercury.protocol.invitation.v2.Invitation
import org.hyperledger.identus.pollux.core.model.error.CredentialServiceError
import org.hyperledger.identus.pollux.core.model.error.PresentationError
import org.hyperledger.identus.pollux.core.model.error.{CredentialServiceError, PresentationError}
import org.hyperledger.identus.pollux.core.model.DidCommID
import org.hyperledger.identus.pollux.core.service.CredentialService
import org.hyperledger.identus.pollux.sdjwt.SDJWT.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
InvitationGenerated,
_,
_,
Expand All @@ -124,15 +123,15 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_
) =>
ZIO.unit
case PresentationRecord(_, _, _, _, _, _, _, _, InvitationExpired, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(_, _, _, _, _, _, _, InvitationExpired, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.unit
case PresentationRecord(id, _, _, _, _, _, _, _, ProposalPending, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, ProposalPending, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.fail(NotImplemented)
case PresentationRecord(id, _, _, _, _, _, _, _, ProposalSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, ProposalSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.fail(NotImplemented)
case PresentationRecord(id, _, _, _, _, _, _, _, ProposalReceived, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, ProposalReceived, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.fail(NotImplemented)
case PresentationRecord(id, _, _, _, _, _, _, _, ProposalRejected, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, ProposalRejected, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.fail(NotImplemented)
case PresentationRecord(
id,
Expand All @@ -142,7 +141,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
RequestPending,
_,
_,
Expand All @@ -168,7 +166,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
RequestPending,
_,
_,
Expand All @@ -194,7 +191,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
RequestSent,
_,
_,
Expand All @@ -220,7 +216,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
RequestReceived,
_,
_,
Expand All @@ -246,7 +241,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
RequestRejected,
_,
_,
Expand All @@ -272,7 +266,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
ProblemReportPending,
_,
_,
Expand All @@ -290,7 +283,7 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_
) =>
ZIO.fail(NotImplemented)
case PresentationRecord(id, _, _, _, _, _, _, _, ProblemReportSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, ProblemReportSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.fail(NotImplemented)
case PresentationRecord(
id,
Expand All @@ -300,7 +293,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
ProblemReportReceived,
_,
_,
Expand All @@ -326,7 +318,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationPending,
_,
_,
Expand All @@ -353,7 +344,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationPending,
credentialFormat,
_,
Expand Down Expand Up @@ -386,7 +376,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationGenerated,
_,
_,
Expand All @@ -413,7 +402,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationGenerated,
_,
_,
Expand All @@ -433,7 +421,7 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
ZIO.logDebug("PresentationRecord: PresentationGenerated") *> ZIO.unit
Prover.handlePresentationGenerated(id, presentation)

case PresentationRecord(id, _, _, _, _, _, _, _, PresentationSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
case PresentationRecord(id, _, _, _, _, _, _, PresentationSent, _, _, _, _, _, _, _, _, _, _, _, _, _, _) =>
ZIO.logDebug("PresentationRecord: PresentationSent") *> ZIO.unit
case PresentationRecord(
id,
Expand All @@ -443,7 +431,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationReceived,
_,
_,
Expand All @@ -469,7 +456,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationReceived,
_,
_,
Expand All @@ -495,7 +481,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationReceived,
credentialFormat,
invitation,
Expand Down Expand Up @@ -523,7 +508,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationVerificationFailed,
_,
_,
Expand All @@ -549,7 +533,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationAccepted,
_,
_,
Expand All @@ -575,7 +558,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationVerified,
_,
_,
Expand All @@ -601,7 +583,6 @@ object PresentBackgroundJobs extends BackgroundJobsHelper {
_,
_,
_,
_,
PresentationRejected,
_,
_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import org.hyperledger.identus.pollux.core.model.CredentialFormat.{AnonCreds, JW
import org.hyperledger.identus.pollux.core.model.IssueCredentialRecord.Role
import org.hyperledger.identus.pollux.core.service.CredentialService
import org.hyperledger.identus.shared.models.{KeyId, WalletAccessContext}
import zio.{URLayer, ZIO, ZLayer}
import zio.Duration
import zio.{Duration, URLayer, ZIO, ZLayer}

import scala.language.implicitConversions
class IssueControllerImpl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object IssueCredentialOfferInvitation {
description =
"The invitation message encoded as a URL. This URL follows the Out of [Band 2.0 protocol](https://identity.foundation/didcomm-messaging/spec/v2.0/#out-of-band-messages) and can be used to generate a QR code for example.",
example =
"https://my.domain.com/path?_oob=eyJAaWQiOiIzZmE4NWY2NC01NzE3LTQ1NjItYjNmYy0yYzk2M2Y2NmFmYTYiLCJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvbXktZmFtaWx5LzEuMC9teS1tZXNzYWdlLXR5cGUiLCJkaWQiOiJXZ1d4cXp0ck5vb0c5MlJYdnhTVFd2IiwiaW1hZ2VVcmwiOiJodHRwOi8vMTkyLjE2OC41Ni4xMDEvaW1nL2xvZ28uanBnIiwibGFiZWwiOiJCb2IiLCJyZWNpcGllbnRLZXlzIjpbIkgzQzJBVnZMTXY2Z21NTmFtM3VWQWpacGZrY0pDd0R3blpuNnozd1htcVBWIl0sInJvdXRpbmdLZXlzIjpbIkgzQzJBVnZMTXY2Z21NTmFtM3VWQWpacGZrY0pDd0R3blpuNnozd1htcVBWIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHA6Ly8xOTIuMTY4LjU2LjEwMTo4MDIwIn0="
"https://my.domain.com/path?_oob=eyJpZCI6ImY5NmUzNjk5LTU5MWMtNGFlNy1iNWU2LTZlZmU2ZDI2MjU1YiIsInR5cGUiOiJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzIuMC9pbnZpdGF0aW9uIiwiZnJvbSI6ImRpZDpwZWVyOjIuRXo2TFNmc0tNZTh2U1NXa1lkWkNwbjRZVmlQRVJmZEdBaGRMQUdIZ3gyTEdKd2ZtQS5WejZNa3B3MWtTYWJCTXprQTN2NTl0UUZuaDN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0YlM5Mk1pSmRmWDAifX19XSwiY3JlYXRlZF90aW1lIjoxNzI0ODUxMTM5LCJleHBpcmVzX3RpbWUiOjE3MjQ4NTE0Mzl9="
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object OOBPresentationInvitation {
description =
"The invitation message encoded as a URL. This URL follows the Out of [Band 2.0 protocol](https://identity.foundation/didcomm-messaging/spec/v2.0/#out-of-band-messages) and can be used to generate a QR code for example.",
example =
"https://my.domain.com/path?_oob=eyJAaWQiOiIzZmE4NWY2NC01NzE3LTQ1NjItYjNmYy0yYzk2M2Y2NmFmYTYiLCJAdHlwZSI6Imh0dHBzOi8vZGlkY29tbS5vcmcvbXktZmFtaWx5LzEuMC9teS1tZXNzYWdlLXR5cGUiLCJkaWQiOiJXZ1d4cXp0ck5vb0c5MlJYdnhTVFd2IiwiaW1hZ2VVcmwiOiJodHRwOi8vMTkyLjE2OC41Ni4xMDEvaW1nL2xvZ28uanBnIiwibGFiZWwiOiJCb2IiLCJyZWNpcGllbnRLZXlzIjpbIkgzQzJBVnZMTXY2Z21NTmFtM3VWQWpacGZrY0pDd0R3blpuNnozd1htcVBWIl0sInJvdXRpbmdLZXlzIjpbIkgzQzJBVnZMTXY2Z21NTmFtM3VWQWpacGZrY0pDd0R3blpuNnozd1htcVBWIl0sInNlcnZpY2VFbmRwb2ludCI6Imh0dHA6Ly8xOTIuMTY4LjU2LjEwMTo4MDIwIn0="
"https://my.domain.com/path?_oob=eyJpZCI6IjViMjUwMjIzLWExNDItNDRmYi1hOWJkLWU1MjBlNGI0ZjQzMiIsInR5cGUiOiJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzIuMC9pbnZpdGF0aW9uIiwiZnJvbSI6ImRpZDpwZWVyOjIuRXo2TFNkV0hWQ1BFOHc0NWZETjM4aUh0ZFJ6WGkyTFNqQmRSUjRGTmNOUm12VkNKcy5WejZNa2Z2aUI5S1F1OGlnNVZpeG1HZHM3dmdMN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Ny00Y2E1LTg2Y2EtYTA1NTE1NjZlYzZmIiwiaW5wdXRfZGVzY3JpcHRvcnMiOltdfX19LCJmb3JtYXQiOiJwcmlzbS9qd3QifV0sInRoaWQiOiI1YjI1MDIyMy1hMTQyLTQ0ZmItYTliZC1lNTIwZTRiNGY0MzIiLCJmcm9tIjoiZGlkOnBlZXI6Mi5FejZMU2RXSFZDUEU4dzQ1ZkROMzhpSHRkUnpYaTJMU2pCZFJSNEZOY05SbXZWQ0pzLlZ6Nk1rZnZpQjlLUXU4aWc1Vml4bUdkczd2Z0w2ajJRc05QYXJuRlpqcE1DQTloelAuU2V5SjBJam9pWkcwaUxDSnpJanA3SW5WeWFTSTZJbWgwZEhBNkx5OHhPVEl1TVRZNExqRXVNemM2T0RBM01DOWthV1JqYjIxdElpd2ljaUk2VzEwc0ltRWlPbHNpWkdsa1kyOXRiUzkyTWlKZGZYMCJ9fX1dLCJjcmVhdGVkX3RpbWUiOjE3MjQzMzkxNDQsImV4cGlyZXNfdGltZSI6MTcyNDMzOTQ0NH0="
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ object KeycloakAuthenticatorSpec

suite("KeycloakAuthenticatorSpec")(
basicSpec
.provide(
.provideSome[KeycloakContainerCustom](
KeycloakAuthenticatorImpl.layer,
ZLayer.fromZIO(initializeClient) >>> KeycloakClientImpl.authzClientLayer >+> KeycloakClientImpl.layer,
keycloakConfigLayer(),
keycloakAdminClientLayer,
keycloakContainerLayer,
Client.default,
KeycloakPermissionManagementService.layer,
WalletManagementServiceImpl.layer,
Expand All @@ -100,12 +99,11 @@ object KeycloakAuthenticatorSpec
ZLayer.succeed(WalletAdministrationContext.Admin())
),
disabledAutoRptSpec
.provide(
.provideSome[KeycloakContainerCustom](
KeycloakAuthenticatorImpl.layer,
ZLayer.fromZIO(initializeClient) >>> KeycloakClientImpl.authzClientLayer >+> KeycloakClientImpl.layer,
keycloakConfigLayer(authUpgradeToRPT = false),
keycloakAdminClientLayer,
keycloakContainerLayer,
Client.default,
KeycloakPermissionManagementService.layer,
WalletManagementServiceImpl.layer,
Expand All @@ -117,6 +115,7 @@ object KeycloakAuthenticatorSpec
ZLayer.succeed(WalletAdministrationContext.Admin())
)
)
.provideLayerShared(keycloakContainerLayer)
.provide(Runtime.removeDefaultLoggers) @@ TestAspect.sequential
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,24 @@ object KeycloakPermissionManagementServiceSpec
multitenantSuite
) @@ sequential @@ TestAspect.before(DBTestUtils.runMigrationAgentDB)

s.provide(
Client.default,
keycloakContainerLayer,
keycloakAdminConfigLayer,
KeycloakAdmin.layer,
KeycloakPermissionManagementService.layer,
KeycloakAuthenticatorImpl.layer,
ZLayer.fromZIO(initializeClient) >>> KeycloakClientImpl.authzClientLayer >+> KeycloakClientImpl.layer,
keycloakConfigLayer(),
WalletManagementServiceImpl.layer,
JdbcWalletNonSecretStorage.layer,
JdbcWalletSecretStorage.layer,
contextAwareTransactorLayer,
pgContainerLayer,
apolloLayer
).provide(Runtime.removeDefaultLoggers)
s
.provideSome[KeycloakContainerCustom](
Client.default,
keycloakAdminConfigLayer,
KeycloakAdmin.layer,
KeycloakPermissionManagementService.layer,
KeycloakAuthenticatorImpl.layer,
ZLayer.fromZIO(initializeClient) >>> KeycloakClientImpl.authzClientLayer >+> KeycloakClientImpl.layer,
keycloakConfigLayer(),
WalletManagementServiceImpl.layer,
JdbcWalletNonSecretStorage.layer,
JdbcWalletSecretStorage.layer,
contextAwareTransactorLayer,
pgContainerLayer,
apolloLayer
)
.provideLayerShared(keycloakContainerLayer)
.provide(Runtime.removeDefaultLoggers)
}

private val successfulCasesSuite = suite("Successful Cases")(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ object OIDCCredentialIssuerServiceSpec
MockDIDService.resolveDIDExpectation(issuerDidMetadata, issuerDidData)

private val issuerManagedDIDServiceExpectations =
MockManagedDIDService.javaKeyPairWithDIDExpectation(issuerKp)
MockManagedDIDService.findDIDKeyPairExpectation(issuerKp)

private val getIssuerPrismDidWalletIdExpectations =
MockDIDNonSecretStorage.getPrismDidWalletIdExpectation(issuerDidData.id, WalletId.default)
Expand Down Expand Up @@ -139,7 +139,6 @@ object OIDCCredentialIssuerServiceSpec
None,
credentialDefinition
)
_ <- zio.Console.printLine(jwt)
jwtObject <- ZIO.fromTry(Try(JWSObject.parse(jwt.value)))
payload <- ZIO.fromEither(Json.decoder.decodeJson(jwtObject.getPayload.toString).flatMap(_.as[Json.Obj]))
vc <- ZIO.fromEither(payload.get("vc").get.as[Json.Obj])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object CredentialDefinitionLookupAndPaginationSpec
)
).provideSomeLayerShared(
mockManagedDIDServiceLayer.exactly(20).toLayer >+> testEnvironmentLayer
)
).provide(Runtime.removeDefaultLoggers)

private val credentialDefinitionPaginationSpec = suite("credential-definition-registry pagination logic")(
test("pagination of the first page with the empty query params") {
Expand Down
Loading

0 comments on commit 7a0e6e3

Please sign in to comment.