@genesislcap/foundation-auth 14.121.0 → 14.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/dts/env.d.ts.map +1 -1
- package/dist/esm/env.js +18 -18
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -43,8 +43,7 @@ These examples are based on a host application using [FAST](https://www.fast.des
|
|
|
43
43
|
choice should be quite similar.
|
|
44
44
|
|
|
45
45
|
## Environment variables
|
|
46
|
-
`foundation-auth`
|
|
47
|
-
file, but how you set them is up to you. Below is an example pointing to one of our test servers.
|
|
46
|
+
`foundation-auth` uses the following environment variables. The `.env` file below shows the built-in defaults used.
|
|
48
47
|
|
|
49
48
|
```dotenv
|
|
50
49
|
# There should be nothing sensitive here!
|
|
@@ -63,7 +62,10 @@ GENX_SSO_LIST_URL=/sm/sso/list
|
|
|
63
62
|
GENX_SSO_LOGIN_URL=/sm/{type}/login?idp={id}
|
|
64
63
|
```
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
If you are happy with these defaults then you have nothing more to do.
|
|
66
|
+
|
|
67
|
+
Here is an example of loading environment variables contained in a `.env` file into a webpack build, but how you set
|
|
68
|
+
environment variables at an app level is really up to you.
|
|
67
69
|
|
|
68
70
|
```js
|
|
69
71
|
const { resolveDefineConfig } = require('@genesislcap/build-kit'); // < npm install @genesislcap/build-kit --save
|
package/dist/dts/env.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,QAAA,IAAI,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,QAAA,IAAI,SAAS,EAAE,MAA+B,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB;;GAEG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAA+B,CAAC;AAQvD,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAG7B;;GAEG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAAkC,CAAC;AAQ1D,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAG7B;;GAEG;AACH,QAAA,IAAI,UAAU,EAAE,MAA2B,CAAC;AAQ5C,OAAO,EAAE,UAAU,EAAE,CAAC;AAGtB;;GAEG;AACH,QAAA,IAAI,mBAAmB,EAAE,MAAyC,CAAC;AAQnE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAG/B;;GAEG;AACH,QAAA,IAAI,mBAAmB,EAAE,MAAgD,CAAC;AAQ1E,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAG/B;;GAEG;AACH,QAAA,IAAI,kBAAkB,EAAE,MAA0C,CAAC;AAQnE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAG9B;;GAEG;AACH,QAAA,IAAI,YAAY,EAAE,MAAuB,CAAC;AAQ1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAGxB;;GAEG;AACH,QAAA,IAAI,aAAa,EAAE,MAAoC,CAAC;AAQxD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/esm/env.js
CHANGED
|
@@ -3,99 +3,99 @@ import { logger } from './utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
let LOGIN_URL = '
|
|
6
|
+
let LOGIN_URL = '/sm/event-login-auth';
|
|
7
7
|
if (typeof GENX_LOGIN_URL !== 'undefined') {
|
|
8
8
|
LOGIN_URL = GENX_LOGIN_URL;
|
|
9
9
|
}
|
|
10
10
|
else {
|
|
11
|
-
logger.
|
|
11
|
+
logger.debug(`GENX_LOGIN_URL unset, defaulting to ${LOGIN_URL}`);
|
|
12
12
|
}
|
|
13
13
|
export { LOGIN_URL };
|
|
14
14
|
/**
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
let LOGIN_REFRESH_URL = '
|
|
17
|
+
let LOGIN_REFRESH_URL = '/sm/event-login-auth';
|
|
18
18
|
if (typeof GENX_LOGIN_REFRESH_URL !== 'undefined') {
|
|
19
19
|
LOGIN_REFRESH_URL = GENX_LOGIN_REFRESH_URL;
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
logger.
|
|
22
|
+
logger.debug(`GENX_LOGIN_REFRESH_URL unset, defaulting to ${LOGIN_REFRESH_URL}`);
|
|
23
23
|
}
|
|
24
24
|
export { LOGIN_REFRESH_URL };
|
|
25
25
|
/**
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
|
-
let LOGIN_DETAILS_URL = '
|
|
28
|
+
let LOGIN_DETAILS_URL = '/sm/event-login-details';
|
|
29
29
|
if (typeof GENX_LOGIN_DETAILS_URL !== 'undefined') {
|
|
30
30
|
LOGIN_DETAILS_URL = GENX_LOGIN_DETAILS_URL;
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
logger.
|
|
33
|
+
logger.debug(`GENX_LOGIN_DETAILS_URL unset, defaulting to ${LOGIN_DETAILS_URL}`);
|
|
34
34
|
}
|
|
35
35
|
export { LOGIN_DETAILS_URL };
|
|
36
36
|
/**
|
|
37
37
|
* @public
|
|
38
38
|
*/
|
|
39
|
-
let LOGOUT_URL = '
|
|
39
|
+
let LOGOUT_URL = '/sm/event-logout';
|
|
40
40
|
if (typeof GENX_LOGOUT_URL !== 'undefined') {
|
|
41
41
|
LOGOUT_URL = GENX_LOGOUT_URL;
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
|
-
logger.
|
|
44
|
+
logger.debug(`GENX_LOGOUT_URL unset, defaulting to ${LOGOUT_URL}`);
|
|
45
45
|
}
|
|
46
46
|
export { LOGOUT_URL };
|
|
47
47
|
/**
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
let CHANGE_PASSWORD_URL = '
|
|
50
|
+
let CHANGE_PASSWORD_URL = '/sm/event-change-user-password';
|
|
51
51
|
if (typeof GENX_CHANGE_PASSWORD_URL !== 'undefined') {
|
|
52
52
|
CHANGE_PASSWORD_URL = GENX_CHANGE_PASSWORD_URL;
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
logger.
|
|
55
|
+
logger.debug(`GENX_CHANGE_PASSWORD_URL unset, defaulting to ${CHANGE_PASSWORD_URL}`);
|
|
56
56
|
}
|
|
57
57
|
export { CHANGE_PASSWORD_URL };
|
|
58
58
|
/**
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
|
-
let FORGOT_PASSWORD_URL = '
|
|
61
|
+
let FORGOT_PASSWORD_URL = '/sm/event-self-service-password-reset';
|
|
62
62
|
if (typeof GENX_FORGOT_PASSWORD_URL !== 'undefined') {
|
|
63
63
|
FORGOT_PASSWORD_URL = GENX_FORGOT_PASSWORD_URL;
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
-
logger.
|
|
66
|
+
logger.debug(`GENX_FORGOT_PASSWORD_URL unset, defaulting to ${FORGOT_PASSWORD_URL}`);
|
|
67
67
|
}
|
|
68
68
|
export { FORGOT_PASSWORD_URL };
|
|
69
69
|
/**
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
|
-
let RESET_PASSWORD_URL = '
|
|
72
|
+
let RESET_PASSWORD_URL = '/sm/event-password-reset-action';
|
|
73
73
|
if (typeof GENX_RESET_PASSWORD_URL !== 'undefined') {
|
|
74
74
|
RESET_PASSWORD_URL = GENX_RESET_PASSWORD_URL;
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
|
-
logger.
|
|
77
|
+
logger.debug(`GENX_RESET_PASSWORD_URL unset, defaulting to ${RESET_PASSWORD_URL}`);
|
|
78
78
|
}
|
|
79
79
|
export { RESET_PASSWORD_URL };
|
|
80
80
|
/**
|
|
81
81
|
* @public
|
|
82
82
|
*/
|
|
83
|
-
let SSO_LIST_URL = '
|
|
83
|
+
let SSO_LIST_URL = '/sm/sso/list';
|
|
84
84
|
if (typeof GENX_SSO_LIST_URL !== 'undefined') {
|
|
85
85
|
SSO_LIST_URL = GENX_SSO_LIST_URL;
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
|
-
logger.
|
|
88
|
+
logger.debug(`GENX_SSO_LIST_URL unset, defaulting to ${SSO_LIST_URL}`);
|
|
89
89
|
}
|
|
90
90
|
export { SSO_LIST_URL };
|
|
91
91
|
/**
|
|
92
92
|
* @public
|
|
93
93
|
*/
|
|
94
|
-
let SSO_LOGIN_URL = '
|
|
94
|
+
let SSO_LOGIN_URL = '/sm/{type}/login?idp={id}';
|
|
95
95
|
if (typeof GENX_SSO_LOGIN_URL !== 'undefined') {
|
|
96
96
|
SSO_LOGIN_URL = GENX_SSO_LOGIN_URL;
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
logger.
|
|
99
|
+
logger.debug(`GENX_SSO_LOGIN_URL unset, defaulting to ${SSO_LOGIN_URL}`);
|
|
100
100
|
}
|
|
101
101
|
export { SSO_LOGIN_URL };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-auth",
|
|
3
3
|
"description": "Genesis Foundation Auth",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.122.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
8
8
|
"config": {
|
|
9
|
-
"API_HOST": "wss://public-foundation
|
|
9
|
+
"API_HOST": "wss://public-foundation.genesislab.global/gwf/",
|
|
10
10
|
"PORT": 5030
|
|
11
11
|
},
|
|
12
12
|
"genx": {
|
|
@@ -99,19 +99,19 @@
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@genesislcap/foundation-testing": "14.
|
|
103
|
-
"@genesislcap/genx": "14.
|
|
102
|
+
"@genesislcap/foundation-testing": "14.122.0",
|
|
103
|
+
"@genesislcap/genx": "14.122.0",
|
|
104
104
|
"rimraf": "^3.0.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@genesislcap/foundation-comms": "14.
|
|
108
|
-
"@genesislcap/foundation-events": "14.
|
|
109
|
-
"@genesislcap/foundation-logger": "14.
|
|
110
|
-
"@genesislcap/foundation-state-machine": "14.
|
|
111
|
-
"@genesislcap/foundation-store": "14.
|
|
112
|
-
"@genesislcap/foundation-ui": "14.
|
|
113
|
-
"@genesislcap/foundation-utils": "14.
|
|
114
|
-
"@genesislcap/foundation-zero": "14.
|
|
107
|
+
"@genesislcap/foundation-comms": "14.122.0",
|
|
108
|
+
"@genesislcap/foundation-events": "14.122.0",
|
|
109
|
+
"@genesislcap/foundation-logger": "14.122.0",
|
|
110
|
+
"@genesislcap/foundation-state-machine": "14.122.0",
|
|
111
|
+
"@genesislcap/foundation-store": "14.122.0",
|
|
112
|
+
"@genesislcap/foundation-ui": "14.122.0",
|
|
113
|
+
"@genesislcap/foundation-utils": "14.122.0",
|
|
114
|
+
"@genesislcap/foundation-zero": "14.122.0",
|
|
115
115
|
"@microsoft/fast-components": "^2.21.3",
|
|
116
116
|
"@microsoft/fast-element": "^1.7.0",
|
|
117
117
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"publishConfig": {
|
|
132
132
|
"access": "public"
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "78b6b5b81da76d97c7475b84b71af074106681f3"
|
|
135
135
|
}
|