new open id plugin refactor