Fix: Use first redirect uri specified in app if defined

refs #2