Configuring oAuth
Set-CsOAuthConfiguration -Identity Global -ExchangeAutoDiscoverURL <exchange autodiscover svc url> as shown below:
Set-ClientAccessServer -Identity <exchange server FQDN> -AutoDiscoverServiceInternalUri "<XML URL>"
The command as run in my lab environment is shown below along with a Get-ClientAccessServer to verify that the URL was created successfully:
.\Configure-EnterprisePartnerApplication.ps1 -AuthMetadataUrl "https://<LyncFEServerFQDN>/metadata/json/1
The screen shot of running this script in my lab environment is shown below: