Revert "Removes non-functional AppIdentity auth."

This reverts commit a70c4617210d5392734a3c099a0a2dec47148b72.