Fix some feedback from internal review

This commit is contained in:
Carlos Cañizares Estévez 2016-12-30 16:05:16 +01:00
parent f2681b93d2
commit 31add77c32
2 changed files with 4 additions and 8 deletions

View File

@ -31,11 +31,7 @@ export class BasketStatusComponent implements OnInit {
});
// Subscribe to Drop Basket Observable:
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res =>
this.service.getBasket().subscribe(basket => {
this.badge = basket.items.length;
})
);
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => this.badge = 0);
// Subscribe to login and logout observable
this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => {

View File

@ -70,7 +70,7 @@ export class SecurityService {
public Authorize() {
this.ResetAuthorizationData();
let authorizationUrl = 'http://localhost:5105/connect/authorize';
let authorizationUrl = 'http://10.0.75.1:5105/connect/authorize';
let client_id = 'js';
let redirect_uri = 'http://localhost:5104/';
let response_type = 'id_token token';
@ -142,7 +142,7 @@ export class SecurityService {
}
public Logoff() {
let authorizationUrl = 'http://localhost:5105/connect/endsession';
let authorizationUrl = 'http://10.0.75.1:5105/connect/endsession';
let id_token_hint = this.retrieve('authorizationDataIdToken');
let post_logout_redirect_uri = 'http://localhost:5104/';
@ -213,7 +213,7 @@ export class SecurityService {
private getUserData = (): Observable<string[]> => {
this.setHeaders();
return this._http.get('http://localhost:5105/connect/userinfo', {
return this._http.get('http://10.0.75.1:5105/connect/userinfo', {
headers: this.headers,
body: ''
}).map(res => res.json());