-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into authinfo-assignprop
- Loading branch information
Showing
27 changed files
with
1,658 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
- '17' | ||
- '16' | ||
- '14' | ||
- '12' | ||
- '10' | ||
- '8' | ||
- '6' | ||
- '4' | ||
# - '3' # io.js | ||
# - '2' # io.js | ||
# - '1' # io.js | ||
- '0.12' | ||
- '0.10' | ||
# - '0.8' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.6.0] - 2022-05-20 | ||
### Added | ||
- `authenticate()`, `req#login`, and `req#logout` accept a | ||
`keepSessionInfo: true` option to keep session information after regenerating | ||
the session. | ||
|
||
### Changed | ||
|
||
- `req#login()` and `req#logout()` regenerate the the session and clear session | ||
information by default. | ||
- `req#logout()` is now an asynchronous function and requires a callback | ||
function as the last argument. | ||
|
||
### Security | ||
|
||
- Improved robustness against session fixation attacks in cases where there is | ||
physical access to the same system or the application is susceptible to | ||
cross-site scripting (XSS). | ||
|
||
## [0.5.3] - 2022-05-16 | ||
### Fixed | ||
|
||
- `initialize()` middleware extends request with `login()`, `logIn()`, | ||
`logout()`, `logOut()`, `isAuthenticated()`, and `isUnauthenticated()` functions | ||
again, reverting change from 0.5.1. | ||
|
||
## [0.5.2] - 2021-12-16 | ||
### Fixed | ||
- Introduced a compatibility layer for strategies that depend directly on | ||
`passport@0.4.x` or earlier (such as `passport-azure-ad`), which were | ||
broken by the removal of private variables in `passport@0.5.1`. | ||
|
||
## [0.5.1] - 2021-12-15 | ||
### Added | ||
- Informative error message in session strategy if session support is not | ||
available. | ||
|
||
### Changed | ||
|
||
- `authenticate()` middleware, rather than `initialize()` middleware, extends | ||
request with `login()`, `logIn()`, `logout()`, `logOut()`, `isAuthenticated()`, | ||
and `isUnauthenticated()` functions. | ||
|
||
## [0.5.0] - 2021-09-23 | ||
### Changed | ||
|
||
- `initialize()` middleware extends request with `login()`, `logIn()`, | ||
`logout()`, `logOut()`, `isAuthenticated()`, and `isUnauthenticated()` | ||
functions. | ||
|
||
### Removed | ||
|
||
- `login()`, `logIn()`, `logout()`, `logOut()`, `isAuthenticated()`, and | ||
`isUnauthenticated()` functions no longer added to `http.IncomingMessage.prototype`. | ||
|
||
### Fixed | ||
|
||
- `userProperty` option to `initialize()` middleware only affects the current | ||
request, rather than all requests processed via singleton Passport instance, | ||
eliminating a race condition in situations where `initialize()` middleware is | ||
used multiple times in an application with `userProperty` set to different | ||
values. | ||
|
||
[Unreleased]: https://github.com/jaredhanson/passport/compare/v0.6.0...HEAD | ||
[0.6.0]: https://github.com/jaredhanson/passport/compare/v0.5.3...v0.6.0 | ||
[0.5.3]: https://github.com/jaredhanson/passport/compare/v0.5.2...v0.5.3 | ||
[0.5.2]: https://github.com/jaredhanson/passport/compare/v0.5.1...v0.5.2 | ||
[0.5.1]: https://github.com/jaredhanson/passport/compare/v0.5.0...v0.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
## Gold Sponsors | ||
|
||
[![LoginRadius](https://raw.githubusercontent.com/jaredhanson/passport/master/sponsors/loginradius.png)](https://www.loginradius.com/) | ||
<br><br> | ||
[![WorkOS](https://raw.githubusercontent.com/jaredhanson/passport/master/sponsors/workos.png)](https://workos.com/) | ||
<br> | ||
[![Snyk](https://raw.githubusercontent.com/jaredhanson/passport/master/sponsors/snyk.png)](https://snyk.io/) | ||
|
||
## Sponsors | ||
|
||
- [CodePilot.ai](https://codepilot.ai/) | ||
- [Jeremy Combs](https://github.com/jmcombs) | ||
- [Gadget](https://gadget.dev/) | ||
- Kelly Burke | ||
- [Matt Miller](https://mmiller.me/) | ||
|
||
## Past Sponsors | ||
|
||
- [LoginRadius](https://www.loginradius.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["plugins/markdown"] | ||
} |
Oops, something went wrong.