Move redirect_uri to constructor. Fixes deprecation