Skip to content
Snippets Groups Projects
Commit 19794a62 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

refactor(dlcm-portal): add withCredentials

add withCredentials on the post request that ask for token.
parent 94af43a5
No related branches found
No related tags found
No related merge requests found
...@@ -487,7 +487,7 @@ export class OAuthService extends AuthConfig { ...@@ -487,7 +487,7 @@ export class OAuthService extends AuthConfig {
.set("Content-Type", "application/x-www-form-urlencoded") .set("Content-Type", "application/x-www-form-urlencoded")
.set("Authorization", "Basic " + authData); .set("Authorization", "Basic " + authData);
this.http.post<TokenResponse>(this.tokenEndpoint, params, {headers}) this.http.post<TokenResponse>(this.tokenEndpoint, params, {headers, withCredentials: false})
.subscribe((tokenResp) => { .subscribe((tokenResp) => {
this.debug("refresh tokenResponse", tokenResp); this.debug("refresh tokenResponse", tokenResp);
this.storeAccessTokenResponse(tokenResp.access_token, tokenResp.refresh_token, tokenResp.expires_in, tokenResp.scope); this.storeAccessTokenResponse(tokenResp.access_token, tokenResp.refresh_token, tokenResp.expires_in, tokenResp.scope);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment