Skip to content

Commit

Permalink
fix: trust chain resolve method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Oct 8, 2024
1 parent 5d203dd commit d7232ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TrustChain(engine: HttpClientEngine) {
private val fetchClient = Fetch(engine)
private val mapper = JsonMapper()

suspend fun resolveTrustChain(entityIdentifier: String, trustAnchors: Array<String>): MutableList<String>? {
suspend fun resolve(entityIdentifier: String, trustAnchors: Array<String>): MutableList<String>? {
val cache = SimpleCache<String, String>()
val chain: MutableList<String> = arrayListOf()
return buildTrustChainRecursive(entityIdentifier, trustAnchors, chain, cache)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TrustChainTest {
mockEngine
)

val trustChain = trustChainService.resolveTrustChain(
val trustChain = trustChainService.resolve(
"https://spid.wbss.it/Spid/oidc/rp/ipasv_lt",
arrayOf("https://oidc.registry.servizicie.interno.gov.it")
)
Expand All @@ -51,7 +51,7 @@ class TrustChainTest {
mockResponses[Url("https://oidc.registry.servizicie.interno.gov.it/.well-known/openid-federation")]
)

val trustChain2 = trustChainService.resolveTrustChain(
val trustChain2 = trustChainService.resolve(
"https://spid.wbss.it/Spid/oidc/sa",
arrayOf("https://oidc.registry.servizicie.interno.gov.it")
)
Expand Down

0 comments on commit d7232ae

Please sign in to comment.