Skip to content

Commit 122ab6f

Browse files
committed
* Add ewsOAuthHelper
* update packages * npm audit * update build scripts * removed combined Typing file, they are still available along with compiled js and map
1 parent ccd9d30 commit 122ab6f

11 files changed

+367
-25039
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ You can now use this in Ionic, Cordova, Browser based process (where CORS is dis
4545

4646
===========================================================================================
4747

48+
# Whats new v0.15.0
49+
* Added helper class for Exchange Online/Office 365 OAuth with Exchange RBAC with Apps Support (This is latest Microsoft Guideline)
50+
- This RBAC method is APP only which uses Client Credential Flow and not user specific token
51+
- You can still get user specific access token by delegation and pass token to `OAuthCredentials`
52+
* updated `@ewsjs/xhr` version to `3.1.0` (dependency audit update)
53+
54+
```ts
55+
import { ExchangeService, OAuthCredentials, ExchangeVersion } from "ews-javascript-api";
56+
import { EwsOAuthHelper } from "ews-javascript-api/lib/EwsOAuthHelper";
57+
58+
const oAuthHelper = new EwsOAuthHelper({ clientId: '', clientSecret: '', tenantId: '' });
59+
const token = await oAuthHelper.getAppAccessToken();
60+
const ews = new ExchangeService(ExchangeVersion.);
61+
ews.Credentials =new OAuthCredentials(token.accessToken);
62+
await ews.<method>();
63+
```
64+
> you will still need to update expired access token by calling `oAuthHelper.getAppAccessToken()`, you can safely run this when you want to use ews as this can return cached token which is not expired
65+
4866
# Whats new v0.14.0
4967
* Updated implementation of `@ewsjs/ntlm-client` to continue support ntlm with node 18+ (dependency of `@ewsjs/xhr`)
5068
* This fixes latest support for ntlm with node 18/20+

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Version | Supported |
66
| ---------- | ------------------ |
7-
| 0.11.0 | :white_check_mark: |
8-
| < 0.11.0 | :x: |
7+
| 0.15.0 | :white_check_mark: |
8+
| < 0.15.0 | :x: |
99

1010
## Reporting a Vulnerability
1111

0 commit comments

Comments
 (0)