Skip to content

Commit

Permalink
Merge pull request #7 from DSorlov/dev
Browse files Browse the repository at this point in the history
0.1.4
  • Loading branch information
DSorlov authored Jul 6, 2020
2 parents 81a96e8 + a0ed2ae commit 878a070
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog][keep-a-changelog]
## [Unreleased]
- Nothing right now

## [0.1.4] (2020-07-06)

### Fixed
- Fixed broken handing of objects into frejaeid and frejaorgid
- Fixed broken default certificates for production in frejaeid and frejaorgid

## [0.1.3] (2020-07-01)

### Breaking Changes
Expand Down Expand Up @@ -52,6 +58,7 @@ The format is based on [Keep a Changelog][keep-a-changelog]

[keep-a-changelog]: http://keepachangelog.com/en/1.0.0/
[Unreleased]: https://github.com/DSorlov/eid-provider/compare/master...dev
[0.1.4]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.4
[0.1.3]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.3
[0.1.2]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.2
[0.1.1]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.1
Expand Down
6 changes: 3 additions & 3 deletions modules/frejaeid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultSettings = {
production: {
endpoint: 'https://services.prod.frejaeid.com',
client_cert: '',
ca_cert: fs.readFileSync(__dirname +`/../certs/bankid_prod.ca`),
ca_cert: fs.readFileSync(__dirname +`/../certs/frejaeid_prod.ca`),
jwt_cert: {
'aRw9OLn2BhM7hxoc458cIXHfezw': fs.readFileSync(__dirname +`/../certs/frejaeid_prod_aRw9OLn2BhM7hxoc458cIXHfezw.jwt`),
'onjnxVgI3oUzWQMLciD7sQZ4mqM': fs.readFileSync(__dirname +`/../certs/frejaeid_prod_onjnxVgI3oUzWQMLciD7sQZ4mqM.jwt`)
Expand Down Expand Up @@ -46,7 +46,7 @@ function initialize(settings) {
httpsAgent: new https.Agent({
pfx: settings.client_cert,
passphrase: settings.password,
ca: settings.ca_cert,
ca: settings.ca_cert
}),
headers: {
'Content-Type': 'application/json',
Expand All @@ -70,7 +70,7 @@ function unPack(default_type,default_country,data) {

return {
userInfoType: default_type,
userInfo: default_type==='SSN' ? Buffer.from(JSON.stringify({country: default_country,ssn: data})).toString('base64') : data
userInfo: default_type==='SSN' ? Buffer.from(JSON.stringify({country: default_country,ssn: value})).toString('base64') : value
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions modules/frejaorgid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultSettings = {
production: {
endpoint: 'https://services.prod.frejaeid.com',
client_cert: '',
ca_cert: fs.readFileSync(__dirname +`/../certs/bankid_prod.ca`),
ca_cert: fs.readFileSync(__dirname +`/../certs/frejaeid_prod.ca`),
jwt_cert: {
'aRw9OLn2BhM7hxoc458cIXHfezw': fs.readFileSync(__dirname +`/../certs/frejaeid_prod_aRw9OLn2BhM7hxoc458cIXHfezw.jwt`),
'onjnxVgI3oUzWQMLciD7sQZ4mqM': fs.readFileSync(__dirname +`/../certs/frejaeid_prod_onjnxVgI3oUzWQMLciD7sQZ4mqM.jwt`)
Expand Down Expand Up @@ -47,7 +47,7 @@ function initialize(settings) {
httpsAgent: new https.Agent({
pfx: settings.client_cert,
passphrase: settings.password,
ca: settings.ca_cert,
ca: settings.ca_cert
}),
headers: {
'Content-Type': 'application/json',
Expand All @@ -71,7 +71,7 @@ function unPack(default_type,default_country,data) {

return {
userInfoType: default_type,
userInfo: default_type==='SSN' ? Buffer.from(JSON.stringify({country: default_country,ssn: data})).toString('base64') : data
userInfo: default_type==='SSN' ? Buffer.from(JSON.stringify({country: default_country,ssn: value})).toString('base64') : value
}
}
}
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": "eid-provider",
"version": "0.1.3",
"version": "0.1.4",
"description": "Integration module for electronic identification providers",
"bundleDependencies": false,
"deprecated": false,
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](#)
[![version](https://img.shields.io/badge/version-0.1.3-green.svg)](#)
[![version](https://img.shields.io/badge/version-0.1.4-green.svg)](#)
[![maintained](https://img.shields.io/maintenance/yes/2020.svg)](#)
[![maintainer](https://img.shields.io/badge/maintainer-daniel%20sörlöv-blue.svg)](https://github.com/DSorlov)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://img.shields.io/github/license/DSorlov/eid-provider)
Expand Down

0 comments on commit 878a070

Please sign in to comment.