Appearance
Resolver Configuration
The Universal Resolver supports various configuration settings that can be configured per account.
Configuration Setting: universalResolverConfig
Using this setting, the default actions of corresponding Resolver Parameters can be specified. Also, some of the settings support allow-lists and deny-lists.
Get Value
The following request will get the universalResolverConfig
configuration setting.
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://profile.godiddy.com/1.0.0/profile/metadata/universalResolverConfig"
1
2
2
Set Value
The following request will set the universalResolverConfig
configuration setting.
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X PUT "https://profile.godiddy.com/1.0.0/profile/metadata/universalResolverConfig" \
-H "Content-Type: application/json" \
-d '{
"securityPolicy": {
"checkValidDidDocument": {
"defaultAction": "warn"
},
"checkMethod": {
"defaultAction": "warn",
"deny": ["indy"]
}
}
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Supported Fields
The following fields are supported in the universalResolverConfig
configuration setting, which correspond to Resolver Parameters:
Field | Possible Values |
---|---|
securityPolicy.checkValidDidDocument.defaultAction | ignore , warn , error . |
securityPolicy.checkMethod.defaultAction | ignore , warn , error . |
securityPolicy.checkMethod.allow | An array containing an allow-list of DID methods. Supports the * wildcard. |
securityPolicy.checkMethod.deny | An array containing an deny-list of DID methods. Supports the * wildcard. |
securityPolicy.checkKeyType.defaultAction | ignore , warn , error . |
securityPolicy.checkKeyType.allow | An array containing an allow-list of key types. Supports the * wildcard. |
securityPolicy.checkKeyType.deny | An array containing an deny-list of key types. Supports the * wildcard. |
securityPolicy.checkVerificationMethodType.defaultAction | ignore , warn , error . |
securityPolicy.checkVerificationMethodType.allow | An array containing an allow-list of verification method types. Supports the * wildcard. |
securityPolicy.checkVerificationMethodType.deny | An array containing an deny-list of verification method types. Supports the * wildcard. |
securityPolicy.checkLocalDerivedKey.defaultAction | ignore , warn , error . |
securityPolicy.checkLocalDuplicateKey.defaultAction | ignore , warn , error . |
securityPolicy.checkGlobalDuplicateKey.defaultAction | ignore , warn , error . |
securityPolicy.checkDns.defaultAction | ignore , warn , error . |
securityPolicy.checkDns.allow | An array containing an allow-list of domain names. Supports the * wildcard. |
securityPolicy.checkDns.deny | An array containing an deny-list of domain names. Supports the * wildcard. |
securityPolicy.checkCertificate.defaultAction | ignore , warn , error . |
securityPolicy.checkCertificate.allow | An array containing an allow-list of PEM-encoded trusted X.509 certificates. Supports the * wildcard. |
securityPolicy.checkCertificate.deny | An array containing an deny-list of PEM-encoded trusted X.509 certificates. Supports the * wildcard. |
Configuration Setting: universalResolverConfigProfiles
Using this setting, configuration profiles of the universalResolverConfig
configuration setting can be defined, which can then be invoked in API calls to the Universal Resolver.
Get Value
The following request will get the universalResolverConfigProfiles
configuration setting.
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://profile.godiddy.com/1.0.0/profile/metadata/universalResolverConfigProfiles"
1
2
2
Set Value
The following request will set the universalResolverConfigProfiles
configuration setting.
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X PUT "https://profile.godiddy.com/1.0.0/profile/metadata/universalResolverConfigProfiles" \
-H "Content-Type: application/json" \
-d '{
"strict": {
"securityPolicy": {
"checkValidDidDocument": {
"defaultAction": "error"
},
"checkMethod": {
"defaultAction": "error",
"deny": ["indy"]
}
}
},
"lax": {
"securityPolicy": {
"checkValidDidDocument": {
"defaultAction": "ignore"
},
"checkMethod": {
"defaultAction": "ignore",
"deny": ["indy"]
}
}
}
}'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
With configProfile
parameter
A request for a DID URL with this parameter will apply the configuration settings of the selected configuration profile:
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE?configProfile=lax"
1
2
2