Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR merges the universal resolver plugin into main ACA-Py. This PR adds a couple new CLI args to configure usage of the universal resolver.
By default, the universal resolver is NOT loaded. If the
--universal-resolver
flag is given, without arguments, it will default to usinghttps://dev.uniresolver.io
for convenience. We might want to add language somewhere discouraging people from using this endpoint all the time. We should encourage people to use--universal-resolver https://my.universal.resolver.com
to point to their own deployed universal resolver instance.By default, if the resolver is loaded, it will retrieve properties from the universal resolver and use that to compile a regex that matches all supported DIDs. This regex will be used to determine if a given DID is supported by the resolver. Alternatively, the user can specify
--universal-resolver-regex regex-one regex-two regex-three
to manually configure what DIDs should be supported by the universal resolver. This is useful when you want to limit usage of the universal resolver to a known "trustworthy" set of DIDs or similar. The arguments to--universal-resolver-regex
are compiled into a single regex on startup.cc @swcurran