We have removed the basic authentication in the latest versions of the EWS connector. WSO2 EWS connector version 1.0.0 supports the basic authentication and OAuth 2.0 is supported by the versions 1.0.1 and above.
There are 3 approaches to configure the authentication via the init template in the OAuth 2.0 supported versions.
- We can use a valid access token. If we go with this, client credentials (clientId & clientSecret) are optional.
- If the refresh token is provided, token will be refreshed. Here, clientId & clientSecret are mandatory for this.
- If both access token and refresh token are not provided, client_credentials flow will be used to generate the access token. clientId & clientSecret are mandatory for this flow.