Skip to content

Commit c1035a8

Browse files
committed
release 4.0.0
1 parent deb11f2 commit c1035a8

File tree

2 files changed

+42
-11
lines changed

2 files changed

+42
-11
lines changed

README.md

+41-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# Express OAuth Server
1+
<div align="center">
2+
<h1>Express OAuth Server</h1>
3+
</div>
24

3-
Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with [express](https://github.com/expressjs/express) in [node.js](http://nodejs.org/).
5+
<p align="center">
6+
Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with <a alt="express" href="https://github.com/expressjs/express">express</a> in <a alt="node.js" href="http://nodejs.org/">Node.js</a>.
7+
</p>
8+
9+
<div align="center">
410

511
[![Tests](https://github.com/node-oauth/express-oauth-server/actions/workflows/tests.yml/badge.svg)](https://github.com/node-oauth/express-oauth-server/actions/workflows/tests.yml)
612
[![CodeQL](https://github.com/node-oauth/express-oauth-server/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/node-oauth/express-oauth-server/actions/workflows/github-code-scanning/codeql)
@@ -9,9 +15,25 @@ Complete, compliant and well tested module for implementing an OAuth2 Server/Pro
915
[![npm Downloads/Week](https://img.shields.io/npm/dw/@node-oauth/express-oauth-server)](https://www.npmjs.com/package/@node-oauth/oauth2-server)
1016
![GitHub](https://img.shields.io/github/license/node-oauth/express-oauth-server)
1117

18+
</div>
19+
20+
<div align="center">
21+
22+
[API Docs](https://node-oauth.github.io/express-oauth-server/)
23+
·
24+
[NPM Link](https://www.npmjs.com/package/@node-oauth/express-oauth-server)
25+
·
26+
[Node OAuth2 Server](https://github.com/node-oauth/node-oauth2-server)
27+
28+
</div>
29+
30+
## About
31+
32+
This package wraps the [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server) into an
33+
express compatible middleware.
34+
It's a maintained and up-to-date fork from the former
35+
[oauthjs/express-oauth-server](https://github.com/oauthjs/express-oauth-server).
1236

13-
This is the express wrapper for [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server),
14-
it's a fork from the former [oauthjs/express-oauth-server](https://github.com/oauthjs/express-oauth-server).
1537

1638
## Installation
1739

@@ -48,11 +70,6 @@ app.use(function(req, res) {
4870
app.listen(3000);
4971
```
5072

51-
## More Examples
52-
53-
For more examples, please visit [our dedicated "examples" repo](https://github.com/node-oauth/node-oauth2-server-examples)
54-
, which also contains express examples.
55-
5673
## Options
5774

5875
> Note: The following options **extend** the default options from `@node-oauth/oauth2-sever`!
@@ -83,6 +100,20 @@ const options = {
83100

84101
`authenticate()` does not modify the response and will always call next()
85102

103+
## Migration notes
104+
105+
Beginning with **version 4.0** this package brings some potentially breaking changes:
106+
107+
- dropped old es5 code; moved to native async/await
108+
- requires node >= 16
109+
- ships with [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server) 5.x
110+
- no express version pinned but declared as `'*'` peer dependency, so it should not cause conflicts with your express version
111+
112+
## More Examples
113+
114+
For more examples, please visit [our dedicated "examples" repo](https://github.com/node-oauth/node-oauth2-server-examples)
115+
, which also contains express examples.
116+
86117
## License
87118

88-
MIT, see
119+
MIT, see [license file](./LICENSE).

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@node-oauth/express-oauth-server",
3-
"version": "4.0.0-rc.0",
3+
"version": "4.0.0",
44
"description": "OAuth provider for express",
55
"main": "index.js",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)