Skip to content

Commit

Permalink
2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 30, 2017
1 parent cce3b4e commit e487f43
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
16 changes: 5 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Yay for [SemVer](http://semver.org/).

<!-- TOC START min:2 max:3 link:true update:true -->
- [2.7.x](#27x)
- [2.7.1](#271)
- [2.7.0](#270)
- [2.7.2](#272)
- [2.6.0](#260)
- [2.5.x](#25x)
- [2.5.1](#251)
Expand Down Expand Up @@ -47,20 +46,15 @@ Yay for [SemVer](http://semver.org/).
<!-- TOC END -->

## 2.7.x
### 2.7.1
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.7.0...v2.7.1)
- reverted 2.7.0 null handling of client properties

### 2.7.0
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.6.0...v2.7.0)
### 2.7.2
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.6.0...v2.7.2)
- adjusted the client schema to ignore extra properties for disabled features
- fixed encrypted ID Tokens without a used alg (json payload) to have `cty` (content-type) `json`
- fixed Registration 1.0 ignoring `null` value attributes, only Registration Management Protocol
update action ignores `null` values to clear them from a stored client now
- fixed clients with jwks_uri failing to be fetched blocking the initialize call
- fixed unsigned ID Tokens missing `*_hash` properties
- `request_uri` response caching now also handles `expires` response headers

Note: 2.7.0 and 2.7.1 yanked for the bugs they introduced

## 2.6.0
- [DIFF](https://github.com/panva/node-oidc-provider/compare/v2.5.1...v2.6.0)
- added `scope` to successful token (authorization_code, refresh_token) responses
Expand Down
2 changes: 2 additions & 0 deletions lib/models/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ module.exports = function getClient(provider) {
})
.value();

if (client.jwksUri) promises.push(client.keystore.refresh()); // TODO: fix me elsewhere

await Promise.all(promises);

return client;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"lint-fix": "eslint lib example test --fix",
"heroku-postbuild": "npm install mongodb"
},
"version": "2.7.1",
"version": "2.7.2",
"files": [
"lib"
],
Expand Down
5 changes: 3 additions & 2 deletions test/configuration/client_keystore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ describe('client keystore refresh', () => {

before(bootstrap(__dirname, 'client_keystore')); // provider

before(function () {
before(async function () {
await keystore.generate('RSA', 1024);
setResponse();
return i(this.provider).clientAdd({
client_id: 'client',
client_secret: 'secret',
Expand All @@ -38,7 +40,6 @@ describe('client keystore refresh', () => {
});

it('gets the jwks from the uri', async function () {
await keystore.generate('RSA', 1024);
setResponse();

const client = await this.provider.Client.find('client');
Expand Down

0 comments on commit e487f43

Please sign in to comment.