Fix to openid search

I need to review the internal API - various fuinctions return either json or User objects needs standard approach