I tried to use stackexhange api to authenticate the user

I have registered app with redirect_api as "stackexchange.com/oauth/login_success"

but it always throws as "redirect_uri is not a valid uri"