Clone ModelController from oauth2.