user auth identity model to scala