I've installed the cfgtest application and setup the config-test app in the IAM admin interface, however, I am receiving the above error message from the IAM service when I try to go to cfgtest in my browser. When I open the browser to https://nodevdom04.cryptsharedev.local:8080 it immediately bounces to the IAM site (as expected), but then shows the error.
I've checked that the redirect_uri in the url is in fact correct and matches the app id in the IAM application setup.
I changed the IAM services logging to debug and this is what is being logged:
[08:21:12][info][initServices][worker-1]: IAM service serves on port 7443
[08:21:12][debug][DominoDB][worker-1]: DB.useDocument & document.read for collection [Settings].costTime = 24.99999999999991 ms.
[08:21:12][info][initServices][worker-1]: Admin service serves on port 8443
[08:21:23][debug][DominoDB][worker-1]: commonConfig.ENABLE_QUERY_BY_ID setting is set to false
[08:21:23][debug][base][worker-1]: commonConfig.ENABLE_NO_VIEW_REFRESH setting is set to true
[08:21:23][debug][oidcStorage][worker-1]: Creating oidcStorage instance with name: Client.
[08:21:23][debug][DominoDB][worker-1]: commonConfig.ENABLE_QUERY_BY_ID setting is set to false
[08:21:23][debug][DominoDB][worker-1]: Build query object: { query: '\'Client\'._id = \'472c97a7-923e-4e77-a111-298732b0d3c2\'',
queryFlags: {},
start: 0,
itemNames: [ '*' ],
onErrorOptions: 'ON_ERROR_ABORT_REMAINING',
count: 1 }
[08:21:23][debug][DominoDB][worker-1]: DB.bulkReadDocuments.costTime = 37.00000000000081 ms.
[08:21:23][debug][DominoDB][worker-1]: Find 1 documents in findOne method
[08:21:23][debug][CustomUtils][worker-1]: renderError: {
"error": "redirect_uri_mismatch",
"error_description": "redirect_uri did not match any client's registered redirect_uris",
"state": "5ac042cf91b4f666c25bb5f05cfd2dfa"
}
I checked in the iamstore.nsf to make sure that the app id is also present and correct.
It also returns a document if I use ptest:
C:\domino-db\package>npm run ptest -- read nodevdom04/iamstore.nsf -q "'Client'._id = '472c97a7-923e-4e77-a111-298732b0d3c2'" -p
> @domino/domino-db@1.6.0 ptest C:\domino-db\package
> node proton-test/bin/ptest "read" "nodevdom04/iamstore.nsf" "-q" "'Client'._id = '472c97a7-923e-4e77-a111-298732b0d3c2'" "-p"
{
"documents": [
{
"@unid": "4885C04DFA60A4BCC12585DD003EDE7E",
"@created": {
"type": "datetime",
"data": "2020-09-08T11:26:41.90Z"
},
"@modified": {
"type": "datetime",
"data": "2020-09-08T11:27:29Z"
}
}
],
"errors": 0,
"documentRange": {
"total": 1,
"start": 0,
"count": 1
}
}
My oauthcfg list shows:
C:\domino>oauthcfg list
name:default id:3957c7d4-0b73-4f33-b89c-8a923f5d0901 URI:https://nodevdom04.cryptsharedev.local:7443/token/introspection
name:proton-addin id:d2d690d0-71c2-4857-820c-1e4f2a692b9f URI:https://nodomdev04.cryptsharedev.local:7443/token/introspection
Any help or pointers would be greatly appreciated
Kind Regards
Heidi