OAuth2 connection optimization