Sample application demonstrting delegated authentication