Implement request signing and permitted domains
Compare changes
+ 72
− 14
@@ -47,6 +47,7 @@ import {
@@ -47,6 +47,7 @@ import {
@@ -129,6 +130,24 @@ function setIdentityInLocalStorage(identityToStore, extendKey = true) {
@@ -129,6 +130,24 @@ function setIdentityInLocalStorage(identityToStore, extendKey = true) {
@@ -260,7 +279,7 @@ const destroyIdentity = () => {
@@ -260,7 +279,7 @@ const destroyIdentity = () => {
@@ -382,6 +401,7 @@ function loadIdentityInternal(identityKey, pinCode) {
@@ -382,6 +401,7 @@ function loadIdentityInternal(identityKey, pinCode) {
@@ -390,10 +410,17 @@ function loadIdentityInternal(identityKey, pinCode) {
@@ -390,10 +410,17 @@ function loadIdentityInternal(identityKey, pinCode) {
@@ -479,10 +506,10 @@ function getCertificateForPassport(passportUUID, internal) {
@@ -479,10 +506,10 @@ function getCertificateForPassport(passportUUID, internal) {
@@ -529,7 +556,7 @@ function getCertificateForPassport(passportUUID, internal) {
@@ -529,7 +556,7 @@ function getCertificateForPassport(passportUUID, internal) {
console.warn(`API host URL not specified. Fall back to ${apiUrl}`); // eslint-disable-line no-console
@@ -555,11 +582,40 @@ const connection = Penpal.connectToParent({
@@ -555,11 +582,40 @@ const connection = Penpal.connectToParent({
@@ -568,7 +624,7 @@ const connection = Penpal.connectToParent({
@@ -568,7 +624,7 @@ const connection = Penpal.connectToParent({
@@ -629,7 +685,7 @@ const connection = Penpal.connectToParent({
@@ -629,7 +685,7 @@ const connection = Penpal.connectToParent({
@@ -758,7 +814,7 @@ const connection = Penpal.connectToParent({
@@ -758,7 +814,7 @@ const connection = Penpal.connectToParent({
@@ -791,6 +847,7 @@ const connection = Penpal.connectToParent({
@@ -791,6 +847,7 @@ const connection = Penpal.connectToParent({
@@ -995,7 +1052,7 @@ const connection = Penpal.connectToParent({
@@ -995,7 +1052,7 @@ const connection = Penpal.connectToParent({
@@ -2489,7 +2546,7 @@ connection.promise.then(parent => {
@@ -2489,7 +2546,7 @@ connection.promise.then(parent => {
@@ -2572,7 +2629,8 @@ connection.promise.then(parent => {
@@ -2572,7 +2629,8 @@ connection.promise.then(parent => {
@@ -2604,7 +2662,7 @@ connection.promise.then(parent => {
@@ -2604,7 +2662,7 @@ connection.promise.then(parent => {
@@ -2711,7 +2769,7 @@ connection.promise.then(parent => {
@@ -2711,7 +2769,7 @@ connection.promise.then(parent => {