MVC: fix logout problem

SPA: Basket status refresh
This commit is contained in:
Carlos Cañizares Estévez 2017-01-04 09:59:36 +01:00
parent cc1bbb18af
commit c23dc0a372
3 changed files with 7 additions and 3 deletions

View File

@ -88,7 +88,8 @@ namespace eShopOnContainers.Identity.Configuration
},
PostLogoutRedirectUris = new List<string>
{
$"{clientsUrl["Mvc"]}/"
$"{clientsUrl["Mvc"]}/",
"http://localhost:5100/"
},
AllowedScopes = new List<string>
{

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,10 @@ export class BasketStatusComponent implements OnInit {
});
// Subscribe to Drop Basket Observable:
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => this.badge = 0);
this.basketDroppedSubscription = this.service.basketDroped$.subscribe(res => {
this.badge = 0;
console.log('dropped event fired');
});
// Subscribe to login and logout observable
this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => {