Is it possible to make a POX autodiscover request using an OAuth token. The token has application access privilege for the EWS "full access as app" Office 365 Exchange Online permission.
Whenever I make a request with the token set using Bearer authentication, I get the following response
<?xml version="1.0" encoding="utf-16"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response>
<Error Time="07:52:39.8644685" Id="1321019259">
<ErrorCode>500</ErrorCode>
<Message>The email address can't be found.</Message>
<DebugData />
</Error>
</Response>
</Autodiscover>
But the same request works with basic authentication. I am using this endpoint - https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml
The reason i am doing this is to fetch appropriate headers to make public folder requests
I am able to successfully query the SOAP autodiscover endpoint with same token.
