Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

list of allowed DIDs should be configurable #637

Open
talwinder50 opened this issue Feb 26, 2022 · 0 comments
Open

list of allowed DIDs should be configurable #637

talwinder50 opened this issue Feb 26, 2022 · 0 comments

Comments

@talwinder50
Copy link
Member

Adapter only allows orb did

https://github.com/trustbloc/adapter/blob/main/cmd/adapter-rest/startcmd/start.go#L1053 (edited)
start.go
httpbinding.WithAccept(acceptsDID), httpbinding.WithHTTPClient(
https://github.com/[trustbloc/adapter](https://github.com/trustbloc/adapter)|trustbloc/adaptertrustbloc/adapter | Added by GitHub

this makes the httpbinding vdr (which is what sends the resolve request to the uniresolver server) accept only orb DIDs

// TODO list of allowed DIDs should be configurable

The adapter has a parameter ADAPTER_REST_UNIVERSAL_RESOLVER_URL=http://did.rest.example.com:8072/1.0/identifiers
that allows the adapter to resolve DIDs through uniresolver
but the adapter is hardcoded to only allow orb dids to be resolved through this http resolver URL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant