Fix scope for OAuth2 v2 being hard-coded to O365
When using OAuth2 v2, the scope should include the resource to access, which was hardcoded to https://outlook.office.com. This commit takes the resource from the manual configuration, defaulting to the configured EWS URL instead.
This allows me to authenticate to our organizations exchange using OAuth2 v2