Skip to content

Commit

Permalink
fix: Fixed issues with the implementation of the Default Trust Chain …
Browse files Browse the repository at this point in the history
…implementation.
  • Loading branch information
Zoe Maas committed Oct 28, 2024
1 parent 7b8df9f commit 441b090
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ class DefaultTrustChainJSImpl(
mapEntityStatement(entityConfigurationJwt, EntityConfigurationStatement::class) ?: return@async null

if (chain.isEmpty()) {
chain[chain.size] = entityConfigurationJwt
chain.add(entityConfigurationJwt)
}

println("Getting authority hints")
val authorityHints = entityStatement.authorityHints ?: return@async null

val reorderedAuthorityHints = authorityHints.sortedBy { hint ->
Expand Down

0 comments on commit 441b090

Please sign in to comment.