added redirect_uri check, renamed apiApplicationProcessService