You should also ensure that when you are passing the redirect URI to the oAuth entry point you are correctn URI Encoding it as part of the URL.
You should also ensure that when you are passing the redirect URI to the oAuth entry point you are correctn URI Encoding it as part of the URL.