Skip to content

Commit 0d328cf

Browse files
committed
Add OAuth 2.0 token based authentication
1 parent 539a9f1 commit 0d328cf

17 files changed

+828
-2924
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
**This release is under development and information may be incomplete**
66

7+
- Token-based Authentication changes:
8+
9+
- Added support for [token-based
10+
authentication](https://oracle.github.io/node-oracledb/doc/api.html#oauthtokenbasedauthentication)
11+
using Microsoft Azure Active Directory OAuth 2.0 tokens.
12+
13+
- The `accessToken` attribute for connection and connection pool creation
14+
can now be a string, a callback function, or an object.
15+
16+
- Fixed a bug that prevented async functions from being used in token callbacks.
17+
18+
- Deprecated the connection pool creation attribute `accessTokenCallback`.
19+
20+
- Deprecated `pool.setAccessToken()`.
21+
722
- ResultSets now implement the `asyncIterator()` symbol to support asynchonous
823
iteration.
924

@@ -18,7 +33,7 @@
1833
- Stated compatibility is now for Node.js 14, 16 and 18. Older releases
1934
back to Node.js 10.16 should still work.
2035

21-
- Added support for [token based
36+
- Added support for [token-based
2237
authentication](https://oracle.github.io/node-oracledb/doc/api.html#tokenbasedauth)
2338
when establishing pool based connections and standalone connections.
2439

doc/api.md

Lines changed: 523 additions & 240 deletions
Large diffs are not rendered by default.

examples/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,5 @@ File Name | Description
109109
[`sessiontagging1.js`](sessiontagging1.js) | Simple pooled connection tagging for setting session state
110110
[`sessiontagging2.js`](sessiontagging2.js) | More complex example of pooled connection tagging for setting session state
111111
[`soda1.js`](soda1.js) | Basic Simple Oracle Document Access (SODA) example
112-
[`tokenbasedauth.js`](tokenbasedauth.js) | Shows standalone connection using token based authentication
113-
[`tokenbasedauthpool.js`](tokenbasedauthpool.js) | Shows connection pooling using token based authentication
114112
[`version.js`](version.js) | Shows the node-oracledb version attributes
115113
[`webapp.js`](webapp.js) | A simple web application using a connection pool

examples/tokenbasedauth.js

Lines changed: 0 additions & 125 deletions
This file was deleted.

examples/tokenbasedauthpool.js

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)