update client to be oauth2 compliant