@schibsted/account-sdk-browser 5.2.2 → 5.2.3
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/es5/global.js +35 -12
- package/es5/global.js.map +1 -1
- package/es5/global.min.js +1 -1
- package/es5/global.min.js.map +1 -1
- package/es5/identity.js +35 -12
- package/es5/identity.js.map +1 -1
- package/es5/identity.min.js +1 -1
- package/es5/identity.min.js.map +1 -1
- package/es5/index.js +35 -12
- package/es5/index.js.map +1 -1
- package/es5/index.min.js +1 -1
- package/es5/index.min.js.map +1 -1
- package/es5/monetization.js +1 -1
- package/es5/monetization.js.map +1 -1
- package/es5/monetization.min.js +1 -1
- package/es5/monetization.min.js.map +1 -1
- package/package.json +1 -1
- package/src/identity.d.ts +24 -3
- package/src/identity.js +31 -12
- package/src/version.js +1 -1
package/es5/identity.js
CHANGED
|
@@ -982,7 +982,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
982
982
|
* `password` (will force password confirmation, even if user is already logged in), `eid`. Those values might
|
|
983
983
|
* be mixed as space-separated string. To make sure that user has authenticated with 2FA you need
|
|
984
984
|
* to verify AMR (Authentication Methods References) claim in ID token.
|
|
985
|
-
* Might also be used to ensure additional acr (sms, otp) for already logged
|
|
985
|
+
* Might also be used to ensure additional acr (sms, otp) for already logged-in users.
|
|
986
986
|
* Supported value is also 'otp-email' means one time password using email.
|
|
987
987
|
* @property {string} [scope] - The OAuth scopes for the tokens. This is a list of
|
|
988
988
|
* scopes, separated by space. If the list of scopes contains `openid`, the generated tokens
|
|
@@ -992,7 +992,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
992
992
|
* @property {string} [redirectUri] - Redirect uri that will receive the
|
|
993
993
|
* code. Must exactly match a redirectUri from your client in self-service
|
|
994
994
|
* @property {boolean} [preferPopup] - Should we try to open a popup window?
|
|
995
|
-
* @property {string} [loginHint] -
|
|
995
|
+
* @property {string} [loginHint] - User email or UUID hint
|
|
996
996
|
* @property {string} [tag] - Pulse tag
|
|
997
997
|
* @property {string} [teaser] - Teaser slug. Teaser with given slug will be displayed
|
|
998
998
|
* in place of default teaser
|
|
@@ -1002,9 +1002,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1002
1002
|
* spec section 3.1.2.1 for more information
|
|
1003
1003
|
* @property {string} [locale] - Optional parameter to overwrite client locale setting.
|
|
1004
1004
|
* New flows supports nb_NO, fi_FI, sv_SE, en_US
|
|
1005
|
-
* @property {boolean} [oneStepLogin] -
|
|
1005
|
+
* @property {boolean} [oneStepLogin] - Display username and password on one screen
|
|
1006
1006
|
* @property {string} [prompt] - String that specifies whether the Authorization Server prompts the
|
|
1007
|
-
* End-User for
|
|
1007
|
+
* End-User for re-authentication or confirm account screen. Supported values: `select_account` or `login`
|
|
1008
|
+
* @property {string} [xDomainId] - Identifier for cross-domain tracking in Pulse
|
|
1009
|
+
* @property {string} [xEnvironmentId] - Environment for cross-domain tracking in Pulse
|
|
1010
|
+
* @property {string} [originCampaign] - Campaign identifier for tracking in Pulse
|
|
1008
1011
|
*/
|
|
1009
1012
|
/**
|
|
1010
1013
|
* @typedef {object} SimplifiedLoginWidgetLoginOptions
|
|
@@ -1016,7 +1019,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1016
1019
|
* `password` (will force password confirmation, even if user is already logged in). Those values might
|
|
1017
1020
|
* be mixed as space-separated string. To make sure that user has authenticated with 2FA you need
|
|
1018
1021
|
* to verify AMR (Authentication Methods References) claim in ID token.
|
|
1019
|
-
* Might also be used to ensure additional acr (sms, otp) for already logged
|
|
1022
|
+
* Might also be used to ensure additional acr (sms, otp) for already logged-in users.
|
|
1020
1023
|
* Supported value is also 'otp-email' means one time password using email.
|
|
1021
1024
|
* @property {string} [scope] - The OAuth scopes for the tokens. This is a list of
|
|
1022
1025
|
* scopes, separated by space. If the list of scopes contains `openid`, the generated tokens
|
|
@@ -1026,7 +1029,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1026
1029
|
* @property {string} [redirectUri] - Redirect uri that will receive the
|
|
1027
1030
|
* code. Must exactly match a redirectUri from your client in self-service
|
|
1028
1031
|
* @property {boolean} [preferPopup] - Should we try to open a popup window?
|
|
1029
|
-
* @property {string} [loginHint] -
|
|
1032
|
+
* @property {string} [loginHint] - User email or UUID hint
|
|
1030
1033
|
* @property {string} [tag] - Pulse tag
|
|
1031
1034
|
* @property {string} [teaser] - Teaser slug. Teaser with given slug will be displayed
|
|
1032
1035
|
* in place of default teaser
|
|
@@ -1036,9 +1039,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
1036
1039
|
* spec section 3.1.2.1 for more information
|
|
1037
1040
|
* @property {string} [locale] - Optional parameter to overwrite client locale setting.
|
|
1038
1041
|
* New flows supports nb_NO, fi_FI, sv_SE, en_US
|
|
1039
|
-
* @property {boolean} [oneStepLogin] -
|
|
1042
|
+
* @property {boolean} [oneStepLogin] - Display username and password on one screen
|
|
1040
1043
|
* @property {string} [prompt] - String that specifies whether the Authorization Server prompts the
|
|
1041
1044
|
* End-User for reauthentication or confirm account screen. Supported values: `select_account` or `login`
|
|
1045
|
+
* @property {string} [xDomainId] - Identifier for cross-domain tracking in Pulse
|
|
1046
|
+
* @property {string} [xEnvironmentId] - Environment for cross-domain tracking in Pulse
|
|
1047
|
+
* @property {string} [originCampaign] - Campaign identifier for tracking in Pulse
|
|
1042
1048
|
*/
|
|
1043
1049
|
|
|
1044
1050
|
/**
|
|
@@ -2057,6 +2063,8 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2057
2063
|
* @param {boolean} [options.oneStepLogin=false]
|
|
2058
2064
|
* @param {string} [options.prompt=select_account]
|
|
2059
2065
|
* @param {string} [options.xDomainId]
|
|
2066
|
+
* @param {string} [options.xEnvironmentId]
|
|
2067
|
+
* @param {string} [options.originCampaign]
|
|
2060
2068
|
* @return {Window|null} - Reference to popup window if created (or `null` otherwise)
|
|
2061
2069
|
*/
|
|
2062
2070
|
}, {
|
|
@@ -2086,7 +2094,11 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2086
2094
|
_ref4$prompt = _ref4.prompt,
|
|
2087
2095
|
prompt = _ref4$prompt === void 0 ? 'select_account' : _ref4$prompt,
|
|
2088
2096
|
_ref4$xDomainId = _ref4.xDomainId,
|
|
2089
|
-
xDomainId = _ref4$xDomainId === void 0 ? '' : _ref4$xDomainId
|
|
2097
|
+
xDomainId = _ref4$xDomainId === void 0 ? '' : _ref4$xDomainId,
|
|
2098
|
+
_ref4$xEnvironmentId = _ref4.xEnvironmentId,
|
|
2099
|
+
xEnvironmentId = _ref4$xEnvironmentId === void 0 ? '' : _ref4$xEnvironmentId,
|
|
2100
|
+
_ref4$originCampaign = _ref4.originCampaign,
|
|
2101
|
+
originCampaign = _ref4$originCampaign === void 0 ? '' : _ref4$originCampaign;
|
|
2090
2102
|
this._closePopup();
|
|
2091
2103
|
this.sessionStorageCache.delete(HAS_SESSION_CACHE_KEY);
|
|
2092
2104
|
var url = this.loginUrl({
|
|
@@ -2101,7 +2113,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2101
2113
|
locale: locale,
|
|
2102
2114
|
oneStepLogin: oneStepLogin,
|
|
2103
2115
|
prompt: prompt,
|
|
2104
|
-
xDomainId: xDomainId
|
|
2116
|
+
xDomainId: xDomainId,
|
|
2117
|
+
xEnvironmentId: xEnvironmentId,
|
|
2118
|
+
originCampaign: originCampaign
|
|
2105
2119
|
});
|
|
2106
2120
|
if (preferPopup) {
|
|
2107
2121
|
this.popup = _popup_js__WEBPACK_IMPORTED_MODULE_61__["open"](this.window, url, 'Schibsted account', {
|
|
@@ -2182,6 +2196,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2182
2196
|
* @param {string} [options.locale]
|
|
2183
2197
|
* @param {boolean} [options.oneStepLogin=false]
|
|
2184
2198
|
* @param {string} [options.prompt=select_account]
|
|
2199
|
+
* @param {string} [options.xDomainId]
|
|
2200
|
+
* @param {string} [options.xEnvironmentId]
|
|
2201
|
+
* @param {string} [options.originCampaign]
|
|
2185
2202
|
* @return {string} - The url
|
|
2186
2203
|
*/
|
|
2187
2204
|
}, {
|
|
@@ -2209,7 +2226,11 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2209
2226
|
_ref5$prompt = _ref5.prompt,
|
|
2210
2227
|
prompt = _ref5$prompt === void 0 ? 'select_account' : _ref5$prompt,
|
|
2211
2228
|
_ref5$xDomainId = _ref5.xDomainId,
|
|
2212
|
-
xDomainId = _ref5$xDomainId === void 0 ? '' : _ref5$xDomainId
|
|
2229
|
+
xDomainId = _ref5$xDomainId === void 0 ? '' : _ref5$xDomainId,
|
|
2230
|
+
_ref5$xEnvironmentId = _ref5.xEnvironmentId,
|
|
2231
|
+
xEnvironmentId = _ref5$xEnvironmentId === void 0 ? '' : _ref5$xEnvironmentId,
|
|
2232
|
+
_ref5$originCampaign = _ref5.originCampaign,
|
|
2233
|
+
originCampaign = _ref5$originCampaign === void 0 ? '' : _ref5$originCampaign;
|
|
2213
2234
|
if (_typeof(arguments[0]) !== 'object') {
|
|
2214
2235
|
// backward compatibility
|
|
2215
2236
|
state = arguments[0];
|
|
@@ -2240,7 +2261,9 @@ var Identity = /*#__PURE__*/function (_EventEmitter) {
|
|
|
2240
2261
|
locale: locale,
|
|
2241
2262
|
one_step_login: oneStepLogin || '',
|
|
2242
2263
|
prompt: acrValues ? '' : prompt,
|
|
2243
|
-
x_domain_id: xDomainId
|
|
2264
|
+
x_domain_id: xDomainId,
|
|
2265
|
+
x_env_id: xEnvironmentId,
|
|
2266
|
+
utm_campaign: originCampaign
|
|
2244
2267
|
});
|
|
2245
2268
|
}
|
|
2246
2269
|
|
|
@@ -12143,7 +12166,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12143
12166
|
|
|
12144
12167
|
|
|
12145
12168
|
|
|
12146
|
-
var version = '5.2.
|
|
12169
|
+
var version = '5.2.3';
|
|
12147
12170
|
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
12148
12171
|
|
|
12149
12172
|
/***/ })
|