Parameters state and redirect_uri can be provided from config.