Skip to content

Commit

Permalink
release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Feb 5, 2024
1 parent deb11f2 commit c1035a8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
51 changes: 41 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Express OAuth Server
<div align="center">
<h1>Express OAuth Server</h1>
</div>

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/).
<p align="center">
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>.
</p>

<div align="center">

[![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)
[![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)
Expand All @@ -9,9 +15,25 @@ Complete, compliant and well tested module for implementing an OAuth2 Server/Pro
[![npm Downloads/Week](https://img.shields.io/npm/dw/@node-oauth/express-oauth-server)](https://www.npmjs.com/package/@node-oauth/oauth2-server)
![GitHub](https://img.shields.io/github/license/node-oauth/express-oauth-server)

</div>

<div align="center">

[API Docs](https://node-oauth.github.io/express-oauth-server/)
·
[NPM Link](https://www.npmjs.com/package/@node-oauth/express-oauth-server)
·
[Node OAuth2 Server](https://github.com/node-oauth/node-oauth2-server)

</div>

## About

This package wraps the [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server) into an
express compatible middleware.
It's a maintained and up-to-date fork from the former
[oauthjs/express-oauth-server](https://github.com/oauthjs/express-oauth-server).

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

## Installation

Expand Down Expand Up @@ -48,11 +70,6 @@ app.use(function(req, res) {
app.listen(3000);
```

## More Examples

For more examples, please visit [our dedicated "examples" repo](https://github.com/node-oauth/node-oauth2-server-examples)
, which also contains express examples.

## Options

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

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

## Migration notes

Beginning with **version 4.0** this package brings some potentially breaking changes:

- dropped old es5 code; moved to native async/await
- requires node >= 16
- ships with [@node-oauth/oauth2-server](https://github.com/node-oauth/node-oauth2-server) 5.x
- no express version pinned but declared as `'*'` peer dependency, so it should not cause conflicts with your express version

## More Examples

For more examples, please visit [our dedicated "examples" repo](https://github.com/node-oauth/node-oauth2-server-examples)
, which also contains express examples.

## License

MIT, see
MIT, see [license file](./LICENSE).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-oauth/express-oauth-server",
"version": "4.0.0-rc.0",
"version": "4.0.0",
"description": "OAuth provider for express",
"main": "index.js",
"typings": "index.d.ts",
Expand Down

0 comments on commit c1035a8

Please sign in to comment.