The error message Shown on screen to the user by server does not accurately reflect the root cause, making it difficult to debug.
For instance , the actual Error:
The redirect_uri provided in the authorization request does not match the value configured on the server.
Example auth URL generated -
https://fhirr4sandbox.webch.art/webchart.cgi/oauth/authenticate/?
response_type=code&
redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fcb&scope=launch%2Fpatient+openid+fhirUser+offline_access+patient%2F%2A.read&
state=W_hxmTHJzEr72k_VW8iLa_l8BdDIF5EWRwNFnTvp83I&aud=https%3A%2F%2Ffhirr4sandbox.webch.art%2Fwebchart.cgi&
client_id=MIE-localhost
Error I am getting -

The error message Shown on screen to the user by server does not accurately reflect the root cause, making it difficult to debug.
For instance , the actual Error:
The redirect_uri provided in the authorization request does not match the value configured on the server.
Example auth URL generated -
https://fhirr4sandbox.webch.art/webchart.cgi/oauth/authenticate/?
response_type=code&
redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fcb&scope=launch%2Fpatient+openid+fhirUser+offline_access+patient%2F%2A.read&
state=W_hxmTHJzEr72k_VW8iLa_l8BdDIF5EWRwNFnTvp83I&aud=https%3A%2F%2Ffhirr4sandbox.webch.art%2Fwebchart.cgi&
client_id=MIE-localhost
Error I am getting -