Discovery setup issue on Juniper

I trying to set up the discovery with juniper release but getting the following error
## Error: invalid_request
Mismatching redirect URI.

I followed the steps mentioned at setting up discovery but it throws Mismatching redirect URI error.
URI added for discovery application in LMS panel ends with complete/edx-oauth2/ so does the one shown in the address bar of the browser. What am I missing here ?