ngx-sp-auth 4.23.3 → 4.23.4
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/fesm2022/ngx-sp-auth.mjs +10 -10
- package/fesm2022/ngx-sp-auth.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -1252,7 +1252,7 @@ class AuthService {
|
|
|
1252
1252
|
const url = `${this._AUTH_BASE_URL}/GetAuthentication`;
|
|
1253
1253
|
const headers = this._HTTP_HEADERS;
|
|
1254
1254
|
return this._httpClient
|
|
1255
|
-
.post(url, null, { 'params': params, 'headers': headers })
|
|
1255
|
+
.post(url, null, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1256
1256
|
.pipe(take$1(1), tap$1((response) => {
|
|
1257
1257
|
if (response.Error) {
|
|
1258
1258
|
throw Error(response.ErrorMessage);
|
|
@@ -1292,7 +1292,7 @@ class AuthService {
|
|
|
1292
1292
|
const url = `${this._BASE_URL}/ValidateLogin`;
|
|
1293
1293
|
const headers = this._HTTP_HEADERS;
|
|
1294
1294
|
return this._httpClient
|
|
1295
|
-
.post(url, login, { 'params': params, 'headers': headers })
|
|
1295
|
+
.post(url, login, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1296
1296
|
.pipe(take$1(1), tap$1((response) => {
|
|
1297
1297
|
// Limnpa o armazenamento local do navegador que contém os filtros de um produto específico (com base na prop 'product' do environment)
|
|
1298
1298
|
this._indexedDBService.closeOpenConnection()
|
|
@@ -1372,7 +1372,7 @@ class AuthService {
|
|
|
1372
1372
|
const url = `${this._BASE_URL}/ValidateLogin`;
|
|
1373
1373
|
const headers = this._HTTP_HEADERS;
|
|
1374
1374
|
return this._httpClient
|
|
1375
|
-
.post(url, login, { 'params': params, 'headers': headers })
|
|
1375
|
+
.post(url, login, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1376
1376
|
.pipe(take$1(1), tap$1((response) => {
|
|
1377
1377
|
if (response.FeedbackMessage != "") {
|
|
1378
1378
|
return;
|
|
@@ -1416,7 +1416,7 @@ class AuthService {
|
|
|
1416
1416
|
const url = `${this._BASE_URL}/ValidateExternalLogin`;
|
|
1417
1417
|
const headers = this._HTTP_HEADERS;
|
|
1418
1418
|
return this._httpClient
|
|
1419
|
-
.post(url, login, { 'params': params, 'headers': headers })
|
|
1419
|
+
.post(url, login, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1420
1420
|
.pipe(take$1(1), tap$1((response) => {
|
|
1421
1421
|
if (!response.Error) {
|
|
1422
1422
|
this._authStorageService.isLoggedInSub.next(true);
|
|
@@ -1462,7 +1462,7 @@ class AuthService {
|
|
|
1462
1462
|
const url = `${this._BASE_OS_URL}/ValidateOSLogin`;
|
|
1463
1463
|
const headers = this._HTTP_HEADERS;
|
|
1464
1464
|
return this._httpClient
|
|
1465
|
-
.post(url, login, { 'params': params, 'headers': headers })
|
|
1465
|
+
.post(url, login, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1466
1466
|
.pipe(take$1(1), tap$1((response) => {
|
|
1467
1467
|
if (response.FeedbackMessage != "" && response.FeedbackMessage != null) {
|
|
1468
1468
|
return;
|
|
@@ -1516,7 +1516,7 @@ class AuthService {
|
|
|
1516
1516
|
const url = `${this._BASE_URL}/ValidadeLogin2FaWithEmail`;
|
|
1517
1517
|
const headers = this._HTTP_HEADERS;
|
|
1518
1518
|
return this._httpClient
|
|
1519
|
-
.post(url, Code2Fa, { 'params': params, 'headers': headers })
|
|
1519
|
+
.post(url, Code2Fa, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1520
1520
|
.pipe(take$1(1), tap$1((response) => {
|
|
1521
1521
|
if (response.Error) {
|
|
1522
1522
|
throw Error(response.ErrorMessage);
|
|
@@ -1557,7 +1557,7 @@ class AuthService {
|
|
|
1557
1557
|
const url = `${this._BASE_URL}/GetNewCode2FaWithEmail`;
|
|
1558
1558
|
const headers = this._HTTP_HEADERS;
|
|
1559
1559
|
return this._httpClient
|
|
1560
|
-
.post(url, null, { 'params': params, 'headers': headers })
|
|
1560
|
+
.post(url, null, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1561
1561
|
.pipe(take$1(1), tap$1((response) => {
|
|
1562
1562
|
if (response.Error) {
|
|
1563
1563
|
throw Error(response.ErrorMessage);
|
|
@@ -1576,7 +1576,7 @@ class AuthService {
|
|
|
1576
1576
|
const headers = this._HTTP_HEADERS;
|
|
1577
1577
|
const url = `${this._BASE_URL}/ForgottenPassword`;
|
|
1578
1578
|
return this._httpClient
|
|
1579
|
-
.post(url, null, { 'params': params, 'headers': headers })
|
|
1579
|
+
.post(url, null, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1580
1580
|
.pipe(take$1(1), tap$1((response) => {
|
|
1581
1581
|
if (response.Error) {
|
|
1582
1582
|
throw Error(response.ErrorMessage);
|
|
@@ -1595,7 +1595,7 @@ class AuthService {
|
|
|
1595
1595
|
const headers = this._HTTP_HEADERS;
|
|
1596
1596
|
const url = `${this._BASE_URL}/RecoverPassword`;
|
|
1597
1597
|
return this._httpClient
|
|
1598
|
-
.post(url, recupPassword, { 'params': params, 'headers': headers })
|
|
1598
|
+
.post(url, recupPassword, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1599
1599
|
.pipe(take$1(1), tap$1((response) => {
|
|
1600
1600
|
if (response.Error) {
|
|
1601
1601
|
throw Error(response.ErrorMessage);
|
|
@@ -1614,7 +1614,7 @@ class AuthService {
|
|
|
1614
1614
|
const headers = this._HTTP_HEADERS;
|
|
1615
1615
|
const url = `${this._BASE_URL}/CreatePassword`;
|
|
1616
1616
|
return this._httpClient
|
|
1617
|
-
.post(url, recupPassword, { 'params': params, 'headers': headers })
|
|
1617
|
+
.post(url, recupPassword, { 'params': params, 'headers': headers, withCredentials: true })
|
|
1618
1618
|
.pipe(take$1(1), tap$1((response) => {
|
|
1619
1619
|
if (response.Error) {
|
|
1620
1620
|
throw Error(response.ErrorMessage);
|