Skip to content

Commit

Permalink
2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 5, 2018
1 parent 61d909f commit 7dace5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Yay for [SemVer](http://semver.org/).
**Table of Contents**

<!-- TOC START min:2 max:2 link:true update:true -->
- [2.14.0](#2140)
- [2.13.x](#213x)
- [2.12.0](#2120)
- [2.11.x](#211x)
Expand All @@ -22,6 +23,13 @@ Yay for [SemVer](http://semver.org/).
- [^1.0.0](#100)

<!-- TOC END -->
## 2.14.0
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.13.1...v2.14.0)
- added current account id from OP session to interaction sessions
- added `provider.setSessionAccountId(req, id, [ts])` helper for setting OP
session from other contexts, such as interrupted interactions or password
reset flows.

## 2.13.x
### 2.13.1
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.13.0...v2.13.1)
Expand Down
2 changes: 0 additions & 2 deletions lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function assertReqRes(req, res) {
}
}

/* istanbul ignore next */
async function getSession(req, res) {
assertReqRes.apply(undefined, arguments); // eslint-disable-line prefer-spread, prefer-rest-params
const { cookies } = this.app.createContext(req, res);
Expand Down Expand Up @@ -172,7 +171,6 @@ class Provider extends events.EventEmitter {
return interaction;
}

/* istanbul ignore next */
async setSessionAccountId(req, id, ts = epochTime()) {
const session = await getSession.call(this, req);
Object.assign(session, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oidc-provider",
"version": "2.13.1",
"version": "2.14.0",
"description": "OpenID Provider (OP) implementation for Node.js OpenID Connect servers.",
"keywords": [
"auth",
Expand Down

0 comments on commit 7dace5c

Please sign in to comment.