Skip to content

Commit

Permalink
feat(prism-agent): insert bouncy-castle security as 2nd provider glob…
Browse files Browse the repository at this point in the history
…ally in agent entry point (#477)
  • Loading branch information
bvoiturier authored Mar 28, 2023
1 parent 5324e14 commit 44f06cc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.iohk.atala.agent.server

import com.nimbusds.jose.crypto.bc.BouncyCastleProviderSingleton
import zio.*
import io.iohk.atala.mercury.*
import org.didcommx.didcomm.DIDComm
Expand Down Expand Up @@ -27,6 +28,8 @@ import io.circe.parser.*
import io.circe.syntax.*
import io.iohk.atala.agent.server.health.HealthInfo

import java.security.Security

object SystemInfoApp extends ZIOAppDefault {
private val metricsConfig = ZLayer.succeed(MetricsConfig(5.seconds))

Expand Down Expand Up @@ -64,6 +67,8 @@ object SystemInfoApp extends ZIOAppDefault {

object AgentApp extends ZIOAppDefault {

Security.insertProviderAt(BouncyCastleProviderSingleton.getInstance(), 2)

def didCommAgentLayer(didCommServiceUrl: String): ZLayer[ManagedDIDService, Nothing, DidAgent] = {
val aux = for {
managedDIDService <- ZIO.service[ManagedDIDService]
Expand Down

0 comments on commit 44f06cc

Please sign in to comment.