Add oauth2 support.