Custom identity stores are not trivial for regular users. We have some doc and tests that explain how to achieve this.