• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger / identus-cloud-agent / 8984389170

07 May 2024 11:16AM UTC coverage: 49.381%. Remained the same
8984389170

push

hyperledger-bot
chore(release): cut Identus Cloud agent 1.32.1 release

## [1.32.1](https://github.com/hyperledger/identus-cloud-agent/compare/cloud-agent-v1.32.0...cloud-agent-v1.32.1) (2024-05-07)

### Bug Fixes

* expose pg_admin port on the localhost interface only ([#957](https://github.com/hyperledger/identus-cloud-agent/issues/957)) ([73674b5](https://github.com/hyperledger/identus-cloud-agent/commit/73674b5da))
* Fix OneOf OpenAPI Serialization Issue ([#1010](https://github.com/hyperledger/identus-cloud-agent/issues/1010)) ([393c296](https://github.com/hyperledger/identus-cloud-agent/commit/393c29654))
* remove prism-crypto dependency ([#1015](https://github.com/hyperledger/identus-cloud-agent/issues/1015)) ([46e594c](https://github.com/hyperledger/identus-cloud-agent/commit/46e594c21))
* update open-api-spec and generator script and package.json ([#990](https://github.com/hyperledger/identus-cloud-agent/issues/990)) ([88c1b5e](https://github.com/hyperledger/identus-cloud-agent/commit/88c1b5ead))

Signed-off-by: Allain Magyar <allain.magyar@iohk.io>

7343 of 14870 relevant lines covered (49.38%)

0.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cloud-agent/service/server/src/main/scala/org/hyperledger/identus/agent/server/http/DocModels.scala
1
package org.hyperledger.identus.agent.server.http
2

3
import org.hyperledger.identus.castor.controller.{DIDEndpoints, DIDRegistrarEndpoints}
4
import org.hyperledger.identus.connect.controller.ConnectionEndpoints
5
import org.hyperledger.identus.event.controller.EventEndpoints
6
import org.hyperledger.identus.iam.entity.http.EntityEndpoints
7
import org.hyperledger.identus.iam.wallet.http.WalletManagementEndpoints
8
import org.hyperledger.identus.issue.controller.IssueEndpoints
9
import org.hyperledger.identus.pollux.credentialdefinition.CredentialDefinitionRegistryEndpoints
10
import org.hyperledger.identus.pollux.credentialschema.{SchemaRegistryEndpoints, VerificationPolicyEndpoints}
11
import org.hyperledger.identus.system.controller.SystemEndpoints
12
import sttp.apispec.openapi.*
13
import sttp.apispec.{SecurityScheme, Tag}
14
import sttp.model.headers.AuthenticationScheme
15

16
import scala.collection.immutable.ListMap
17

18
object DocModels {
19

20
  private val apiKeySecuritySchema = SecurityScheme(
×
21
    `type` = "apiKey",
22
    description = Some("API Key Authentication. The header `apikey` must be set with the API key."),
23
    name = Some("apikey"),
24
    in = Some("header"),
25
    scheme = None,
26
    bearerFormat = None,
27
    flows = None,
28
    openIdConnectUrl = None
29
  )
30

31
  private val adminApiKeySecuritySchema = SecurityScheme(
×
32
    `type` = "apiKey",
33
    description =
34
      Some("Admin API Key Authentication. The header `x-admin-api-key` must be set with the Admin API key."),
35
    name = Some("x-admin-api-key"),
36
    in = Some("header"),
37
    scheme = None,
38
    bearerFormat = None,
39
    flows = None,
40
    openIdConnectUrl = None
41
  )
42

43
  private val jwtSecurityScheme = SecurityScheme(
×
44
    `type` = "http",
45
    description =
46
      Some("JWT Authentication. The header `Authorization` must be set with the JWT token using `Bearer` scheme"),
47
    name = Some("Authorization"),
48
    in = Some("header"),
49
    scheme = Some(AuthenticationScheme.Bearer.name),
50
    bearerFormat = None,
51
    flows = None,
52
    openIdConnectUrl = None
53
  )
54

55
  val customiseDocsModel: OpenAPI => OpenAPI = { oapi =>
56
    oapi
57
      .openapi("3.0.3")
×
58
      .info(
×
59
        Info(
60
          title = "Open Enterprise Agent API Reference",
61
          version = "1.0", // Will be replaced dynamically by 'Tapir2StaticOAS'
62
          summary = None,
63
          description = Some("""
×
64
              |The Open Enterprise Agent API facilitates the integration and management of self-sovereign identity capabilities within applications.
65
              |It supports DID (Decentralized Identifiers) management, verifiable credential exchange, and secure messaging based on DIDComm standards.
66
              |The API is designed to be interoperable with various blockchain and DLT (Distributed Ledger Technology) platforms, ensuring wide compatibility and flexibility.
67
              |Key features include connection management, credential issuance and verification, and secure, privacy-preserving communication between entities.
68
              |Additional information and the full list of capabilities can be found in the [Open Enterprise Agent documentation](https://docs.atalaprism.io/docs/category/prism-cloud-agent)
69
              |""".stripMargin),
×
70
          termsOfService = None,
71
          contact = None,
72
          license = Some(
73
            License(
74
              name = "Apache 2.0",
75
              url = Some("https://www.apache.org/licenses/LICENSE-2.0"),
76
              extensions = ListMap.empty
×
77
            )
78
          ),
79
          extensions = ListMap.empty
×
80
        )
81
      )
82
      .servers(
×
83
        List(
×
84
          Server(url = "http://localhost:8085", description = Some("Local Prism Agent")),
×
85
          Server(url = "http://localhost/prism-agent", description = Some("Local Prism Agent with APISIX proxy")),
×
86
          Server(
×
87
            url = "https://k8s-dev.atalaprism.io/prism-agent",
88
            description = Some("Prism Agent on the Staging Environment")
89
          ),
90
        )
91
      )
92
      .components(
×
93
        oapi.components
94
          .getOrElse(sttp.apispec.openapi.Components.Empty)
×
95
          .copy(securitySchemes =
96
            ListMap(
×
97
              "apiKeyAuth" -> Right(apiKeySecuritySchema),
×
98
              "adminApiKeyAuth" -> Right(adminApiKeySecuritySchema),
×
99
              "jwtAuth" -> Right(jwtSecurityScheme)
×
100
            )
101
          )
102
      )
103
      .addSecurity(
×
104
        ListMap(
×
105
          "apiKeyAuth" -> Vector.empty[String],
×
106
          "adminApiKeyAuth" -> Vector.empty[String],
×
107
          "jwtAuth" -> Vector.empty[String]
×
108
        )
109
      )
110
      .tags(
×
111
        List(
×
112
          ConnectionEndpoints.tag,
113
          IssueEndpoints.tag,
114
          VerificationPolicyEndpoints.tag,
115
          SchemaRegistryEndpoints.tag,
116
          CredentialDefinitionRegistryEndpoints.tag,
117
          DIDEndpoints.tag,
118
          DIDRegistrarEndpoints.tag,
119
          WalletManagementEndpoints.tag,
120
          SystemEndpoints.tag,
121
          EventEndpoints.tag,
122
          EntityEndpoints.tag
123
        )
124
      )
125

126
  }
127

128
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc