Skip to content

Commit

Permalink
Merge pull request #16 from DSorlov/dev
Browse files Browse the repository at this point in the history
dev to master
  • Loading branch information
DSorlov authored Apr 8, 2021
2 parents 9823fb8 + c3e97c3 commit c8948f0
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 19 deletions.
12 changes: 11 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ The format is based on [Keep a Changelog][keep-a-changelog]
<!-- and this project adheres to [Semantic Versioning][semantic-versioning]. -->

## [Unreleased]
- Nothing
- Nothing right now

## [0.2.1] (2021-04-08)

### Added
- Implemented phone_numbers collection from authentication (frejaeid,frejaorgid)

### Fixed
- Fixed fatal bug in code for signing (frejaeid)
- Updated xmldom to remove security issues in the soap library

## [0.2.0] (2021-02-12)

Expand Down Expand Up @@ -95,6 +104,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.2.1]: https://github.com/DSorlov/eid-provider/releases/tag/v0.2.1
[0.2.0]: https://github.com/DSorlov/eid-provider/releases/tag/v0.2.0
[0.1.9]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.9
[0.1.8]: https://github.com/DSorlov/eid-provider/releases/tag/v0.1.8
Expand Down
3 changes: 2 additions & 1 deletion modules/frejaeid.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function initAuthRequest(ssn) {
// Lets structure a call for a sign request and return the worker
async function initSignRequest(ssn,text) {
var infoType = unPack(this.settings.id_type,this.settings.default_country,ssn);
var [error, result] = await initRequest(this,'sign/1.0/initSignature', "initSignRequest="+Buffer.from(JSON.stringify({
return await initRequest(this,'sign/1.0/initSignature', "initSignRequest="+Buffer.from(JSON.stringify({
attributesToReturn: this.settings.attribute_list.split(","),
minRegistrationLevel: this.settings.minimumLevel,
userInfoType: infoType.userInfoType,
Expand Down Expand Up @@ -231,6 +231,7 @@ async function pollStatus(self,endpoint,data) {
if (decoded.requestedAttributes.dateOfBirth) result.extra.date_of_birth = decoded.requestedAttributes.dateOfBirth;
if (decoded.requestedAttributes.emailAddress) result.extra.primary_email = decoded.requestedAttributes.emailAddress;
if (decoded.requestedAttributes.allEmailAddresses) result.extra.email_addresses = decoded.requestedAttributes.allEmailAddresses;
if (decoded.requestedAttributes.allPhoneNumbers) result.extra.phone_numbers = decoded.requestedAttributes.allPhoneNumbers;
if (decoded.requestedAttributes.addresses) result.extra.addresses = decoded.requestedAttributes.addresses;
if (decoded.requestedAttributes.customIdentifier) result.extra.custom_identifier = decoded.requestedAttributes.customIdentifier;

Expand Down
1 change: 1 addition & 0 deletions modules/frejaorgid.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ async function pollStatus(self,endpoint,data) {
if (decoded.requestedAttributes.dateOfBirth) result.extra.date_of_birth = decoded.requestedAttributes.dateOfBirth;
if (decoded.requestedAttributes.emailAddress) result.extra.primary_email = decoded.requestedAttributes.emailAddress;
if (decoded.requestedAttributes.allEmailAddresses) result.extra.email_addresses = decoded.requestedAttributes.allEmailAddresses;
if (decoded.requestedAttributes.allPhoneNumbers) result.extra.phone_numbers = decoded.requestedAttributes.allPhoneNumbers;
if (decoded.requestedAttributes.addresses) result.extra.addresses = decoded.requestedAttributes.addresses;

if (decoded.requestedAttributes.basicUserInfo) {
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eid-provider",
"version": "0.2.0",
"version": "0.2.1",
"description": "Integration module for electronic identification providers",
"bundleDependencies": false,
"deprecated": false,
Expand All @@ -15,7 +15,7 @@
"axios": "^0.21.1",
"jsonwebtoken": "^8.5.1",
"request": "^2.88.2",
"soap": "^0.35.0",
"soap": "^0.37.0",
"uuid": "^8.3.1"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![NPM version](https://img.shields.io/npm/v/eid-provider.svg?style=flat)
![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)
![version](https://img.shields.io/badge/version-0.2.0-green.svg)
![version](https://img.shields.io/badge/version-0.2.1-green.svg)
![maintained](https://img.shields.io/maintenance/yes/2021.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
4 changes: 2 additions & 2 deletions security.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The following versions are supported for security updates.

| Version | Supported |
| ------- | ------------------ |
| 0.2.0+ | :white_check_mark: |
| <0.2.0 | :x: |
| 0.2.1 | :white_check_mark: |
| <0.2.1 | :x: |

## Reporting a Vulnerability

Expand Down

0 comments on commit c8948f0

Please sign in to comment.