ngx-sp-auth 4.22.7 → 4.22.8

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.
@@ -1234,8 +1234,8 @@ class AuthService {
1234
1234
  }
1235
1235
  // Comentadas pois não serão mais armazenadas desta forma, o webservice gerará um Cookie com o valor já formatado para Base64
1236
1236
  // E o mesmo será enviada nas requisições subsequentes via párâmetro `withCredentials: true`, e não mais via header Authorization
1237
- // localStorage.setItem('configServerUser', response.User);
1238
- // localStorage.setItem('configServerPassword', response.Password);
1237
+ localStorage.setItem('configServerUser', response.User);
1238
+ localStorage.setItem('configServerPassword', response.Password);
1239
1239
  this._authStorageService.tenantId = response.TenantId;
1240
1240
  this._authStorageService.dominio = response.Domain;
1241
1241
  this._authStorageService.infraInAuthTypeId = response.InfraInAuthTypeId;
@@ -4728,13 +4728,10 @@ class AuthAplicInterceptor {
4728
4728
  await this._authStorage.renewToken();
4729
4729
  // Adiciona as autenticações necessárias ao servidor.
4730
4730
  // Daqui alguns dias este trecho será removido e os tokens serão enviados exclusivamente pelos Cookies, mas por enquanto, para manter compatibilidade com o que já existe, o token será enviado no header
4731
- // let headers: HttpHeaders = req.headers.set(
4732
- // 'Authorization',
4733
- // `Bearer ${this._authStorage.authToken}`
4734
- // );
4731
+ let headers = req.headers.set('Authorization', `Bearer ${this._authStorage.authToken}`);
4735
4732
  changedReq = req.clone({
4736
- // headers: headers,
4737
- withCredentials: true // Parâmetro necessário para utilização dos Cookies HttpOnly
4733
+ headers: headers,
4734
+ //withCredentials: true // Parâmetro necessário para utilização dos Cookies HttpOnly
4738
4735
  });
4739
4736
  }
4740
4737
  // return await lastValueFrom(next.handle(changedReq));
@@ -4779,7 +4776,7 @@ class AuthInfraInterceptor {
4779
4776
  }
4780
4777
  changedReq = req.clone({
4781
4778
  headers: headers,
4782
- withCredentials: true // Parâmetro necessário para utilização dos Cookies HttpOnly
4779
+ //withCredentials: true // Parâmetro necessário para utilização dos Cookies HttpOnly
4783
4780
  });
4784
4781
  }
4785
4782
  // return next.handle(changedReq);