Skip to content

Commit a33b0e0

Browse files
author
Perki
committed
merged audit from pryv
2 parents e29ee6c + 5d3cdab commit a33b0e0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/register/src/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ module.exports = {
5252
if (settingPublicUrl.slice(-1) !== '/') {
5353
settingPublicUrl += '/';
5454
}
55-
// const pathPublicUrl = settingPublicUrl.slice(0, -1);
55+
const pathPublicUrl = settingPublicUrl.slice(0, -1);
5656
config.publicUrl = settingPublicUrl;
5757
config['access:trustedAuthUrls'] = [settingPublicUrl];
58-
config['access:defaultAuthUrl'] = [settings.get('hds:defaultAuthUrl')];
59-
// pathPublicUrl + wwwPath + '/access/access.html' ];
58+
// defaultAuthUrl is assigned to locally served app web auth unless configured
59+
const defaultAuthUrl = settings.get('access:defaultAuthUrl') || pathPublicUrl + wwwPath + '/access/access.html';
60+
config['access:defaultAuthUrl'] = [defaultAuthUrl];
6061

6162
// load admin keys
6263
config.adminKey = settings.get('auth:adminAccessKey');

configs/api.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ http:
1212
auth:
1313
adminAccessKey: REPLACE_ME # key to use for system calls such as `/reg/admin/users`. A random key should be generated on setup.
1414
trustedApps: "*@https://pryv.github.io*, *@https://*.rec.la*, *@https://*.backloop.dev*" # list of web apps that can be trusted-app functionalities
15+
16+
access:
17+
# defaultAuthUrl: https://your.host/path/access/access.html # uncomment to set another path for your app-web-auth3
1518
service:
1619
serial: 1000001 # change serial number each time assets content needs to be reloaded by clients
1720
name: Open-Pryv.io

0 commit comments

Comments
 (0)