Skip to content

Commit

Permalink
Merge pull request #286 from Finastra/release/oidc-0.26.4
Browse files Browse the repository at this point in the history
Release/OIDC 0.26.4
  • Loading branch information
BeataKr authored Oct 4, 2023
2 parents 3366121 + 62bb740 commit fb2d718
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion libs/oidc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<!-- TOC -->

- [Changelog](#changelog)
- [0.26.4 (2023-10-04)](#0264-2023-10-04)
- [Bugfixes](#bugfixes)
- [0.26.3 (2023-01-10)](#0263-2023-01-10)
- [Bugfixes](#bugfixes)
- [0.26.2 (2023-01-03)](#0262-2023-01-03)
Expand Down Expand Up @@ -157,11 +159,17 @@

<!-- /TOC -->

## 0.26.4 (2023-10-04)

### Bugfixes

- Bugfix creating new `strategy` object passed into `passport.authenticate` in oidc.service

## 0.26.3 (2023-01-10)

### Bugfixes

- Bugfix updating the ```logout``` method in oidc.service to be asynchronous, to follow breaking change in passport 0.6.0
- Bugfix updating the `logout` method in oidc.service to be asynchronous, to follow breaking change in passport 0.6.0

## 0.26.2 (2023-01-03)

Expand Down
4 changes: 2 additions & 2 deletions libs/oidc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finastra/nestjs-oidc",
"version": "0.26.3",
"version": "0.26.4",
"contributors": [
"David Boclé <[email protected]>",
"Francine Ong <[email protected]>",
Expand Down Expand Up @@ -29,4 +29,4 @@
"connect-mongo": "4.6.0",
"@types/mongodb": "^4.0.6"
}
}
}
4 changes: 2 additions & 2 deletions libs/oidc/src/services/oidc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';
import { Request, Response } from 'express';
import * as handlebars from 'handlebars';
import { JWKS } from 'jose';
import { Client, custom, Issuer } from 'openid-client';
import { Client, Issuer, custom } from 'openid-client';
import { stringify } from 'querystring';
import { v4 as uuid } from 'uuid';
import { ChannelType, IdentityProviderOptions, OidcModuleOptions } from '../interfaces';
Expand Down Expand Up @@ -165,7 +165,7 @@ export class OidcService implements OnModuleInit {
'utf-8',
).toString('base64');
passport.authenticate(
strategy,
Object.create(strategy),
{
...req['options'],
failureRedirect: `${prefix}/login`,
Expand Down

0 comments on commit fb2d718

Please sign in to comment.