In app creation there is no field to add redirect_uri, and the 'default' always fail.
SUGGESTION: Add redirect_uri field to app details at oauth2 details (key, secret)
This is unnecessary. There is an option for the host name. Please consult the developer documentation and the OAuth 2.0 specification on how these things work or use a library which does the work for you (recommended).