i was able to get the redirect uri but now the connection is throwing this error.
Looks like another person faced the same issue. Still trying to find the root cause.