@axa-fr/react-oidc 7.0.1 → 7.1.0-alpha.1005
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 +1 -0
- package/dist/OidcServiceWorker.js +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -174,6 +174,7 @@ const configuration = {
|
|
|
174
174
|
refresh_time_before_tokens_expiration_in_second: Number, // default is 120 seconds
|
|
175
175
|
service_worker_relative_url: String,
|
|
176
176
|
service_worker_only: Boolean, // default false
|
|
177
|
+
service_worker_update_require_callback: (registration:any, stopKeepAlive:Function) => Promise<void>, // callback called when service worker need to be updated, you can take the control of the update process
|
|
177
178
|
service_worker_convert_all_requests_to_cors: Boolean, // force all requests that service worker upgrades to have 'cors' mode. This allows setting an authentication token on requests initiated by HTML parsing (e.g., img tags, download links, etc.).
|
|
178
179
|
extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server (more info: https://github.com/openid/AppAuth-JS)
|
|
179
180
|
token_request_extras: StringMap | undefined, // ex: {'prompt': 'consent', 'access_type': 'offline'} list of key/value that is sent to the OIDC server during token request (more info: https://github.com/openid/AppAuth-JS)
|
|
@@ -12,6 +12,7 @@ const TokenRenewMode = {
|
|
|
12
12
|
id_token_invalid: "id_token_invalid"
|
|
13
13
|
};
|
|
14
14
|
const openidWellknownUrlEndWith = "/.well-known/openid-configuration";
|
|
15
|
+
const version = "7.1.0-alpha.1005";
|
|
15
16
|
function checkDomain(domains, endpoint) {
|
|
16
17
|
if (!endpoint) {
|
|
17
18
|
return;
|
|
@@ -486,7 +487,8 @@ const handleMessage = (event) => {
|
|
|
486
487
|
port.postMessage({
|
|
487
488
|
tokens: null,
|
|
488
489
|
status: currentDatabase.status,
|
|
489
|
-
configurationName
|
|
490
|
+
configurationName,
|
|
491
|
+
version
|
|
490
492
|
});
|
|
491
493
|
} else {
|
|
492
494
|
const tokens = {
|
|
@@ -504,7 +506,8 @@ const handleMessage = (event) => {
|
|
|
504
506
|
port.postMessage({
|
|
505
507
|
tokens,
|
|
506
508
|
status: currentDatabase.status,
|
|
507
|
-
configurationName
|
|
509
|
+
configurationName,
|
|
510
|
+
version
|
|
508
511
|
});
|
|
509
512
|
}
|
|
510
513
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axa-fr/react-oidc",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.1.0-alpha.1005",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"lint": "eslint src"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@axa-fr/oidc-client-service-worker": "7.0.
|
|
44
|
-
"@axa-fr/oidc-client": "7.0.
|
|
43
|
+
"@axa-fr/oidc-client-service-worker": "7.1.0-alpha.1005",
|
|
44
|
+
"@axa-fr/oidc-client": "7.1.0-alpha.1005",
|
|
45
45
|
"base64-js": "1.5.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|