I'm trying to use OAuth with EWS MA to authenticate against Exchange Server 2013 or Exchange Online. EWS Provides an assembly (Microsoft.Exchange.WebServices.Auth.Validation) which does token validation as follows:
string token = "..."; // where do I get this? new AppIdentityToken().Validate(token);
What I'm wondering is where I obtain this token from. It isn't mentioned in the documentation for the assembly. Can I obtain it using WIF, or do I need to write custom code to get it? Do I need to have an Azure, Office, or Sharepoint app registered to get the token or can I register a client ID and secret somewhere else (assuming I need one at all).
Thanks in advance,
Matthew