Move project to entity. Oauth2 working with password and refresh.