oidc-spa 5.2.4 → 5.2.5

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.
@@ -54,9 +54,13 @@ var OidcInitializationError = /** @class */ (function (_super) {
54
54
  (function () {
55
55
  switch (params.likelyCause.likelyCause) {
56
56
  case "the file hasn't been created":
57
- return "You probably forgot to create the `silent-sso.htm` file in the public directory.";
57
+ return "You probably forgot to create the silent-sso.htm file in the public directory.";
58
58
  case "serving another file":
59
- return "Your webserver is probably re-routing the request to another file. Likely your index.html";
59
+ return [
60
+ "You probably forgot to create the `silent-sso.htm` file in the public directory ?",
61
+ "If you did create check the configuration of your web server, it's probably re-routing the GET request to silent-sso.htm",
62
+ "to another file. Likely your index.html"
63
+ ].join(" ");
60
64
  case "using .html instead of .htm extension":
61
65
  return "You have probably upgraded from oidc-spa v4 to v5, in oidc-spa v5 the silent-sso file should have a .htm extension instead of .html";
62
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OidcInitializationError.js","sourceRoot":"","sources":["src/OidcInitializationError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iDAA8D;AAE9D;IAA6C,2CAAK;IAG9C,iCACI,MAsCO;;QAEP,YAAA,MAAK,YACD,CAAC;;YACG,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBAClB,KAAK,aAAa;oBACd,OAAO;wBACH,mCAAmC;wBACnC,qEAA8D,MAAM,CAAC,SAAS,mBAAgB;wBAC9F,+FAA+F;wBAC/F,yEAAyE;qBAC5E,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAChB,KAAK,mBAAmB;oBACpB,QAAQ,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;wBAC9B,KAAK,2BAA2B;4BAC5B,OAAO;gCACH,0BAAmB,MAAM,CAAC,WAAW,CAAC,QAAQ,oDAAiD;gCAC/F,6DACI,MAAA,MAAM,CAAC,WAAW,CAAC,SAAS,mCAAI,MAAM,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K,SAAS;oBACV,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;YACpC,CAAC;YACD,IAAA,cAAM,EAA+B,KAAK,CAAC,CAAC;QAChD,CAAC,CAAC,EAAE;QACJ,mBAAmB;QACnB,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CACpE,SAAC;QACF,KAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,WAAW,SAAS,CAAC,CAAC;;IACtD,CAAC;IACL,8BAAC;AAAD,CAAC,AA1HD,CAA6C,KAAK,GA0HjD;AA1HY,0DAAuB"}
package/oidc.js CHANGED
@@ -111,7 +111,7 @@ var OidcInitializationError_1 = require("./OidcInitializationError");
111
111
  var base64_1 = require("./tools/base64");
112
112
  var toHumanReadableDuration_1 = require("./tools/toHumanReadableDuration");
113
113
  // NOTE: Replaced at build time
114
- var VERSION = "5.2.4";
114
+ var VERSION = "5.2.5";
115
115
  var PARAMS_TO_RETRIEVE_FROM_SUCCESSFUL_LOGIN = ["code", "state", "session_state", "iss"];
116
116
  // NOTE: This is not arbitrary, it matches what oidc-client-ts uses.
117
117
  var SESSION_STORAGE_PREFIX = "oidc.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oidc-spa",
3
- "version": "5.2.4",
3
+ "version": "5.2.5",
4
4
  "description": "Openidconnect client for Single Page Applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -79,9 +79,13 @@ export class OidcInitializationError extends Error {
79
79
  (() => {
80
80
  switch (params.likelyCause.likelyCause) {
81
81
  case "the file hasn't been created":
82
- return "You probably forgot to create the `silent-sso.htm` file in the public directory.";
82
+ return "You probably forgot to create the silent-sso.htm file in the public directory.";
83
83
  case "serving another file":
84
- return "Your webserver is probably re-routing the request to another file. Likely your index.html";
84
+ return [
85
+ "You probably forgot to create the `silent-sso.htm` file in the public directory ?",
86
+ "If you did create check the configuration of your web server, it's probably re-routing the GET request to silent-sso.htm",
87
+ "to another file. Likely your index.html"
88
+ ].join(" ");
85
89
  case "using .html instead of .htm extension":
86
90
  return "You have probably upgraded from oidc-spa v4 to v5, in oidc-spa v5 the silent-sso file should have a .htm extension instead of .html";
87
91
  }