Browse Source

MVC: fix logout problem

SPA: Basket status refresh
pull/49/merge
Carlos Cañizares Estévez 8 years ago
parent
commit
c23dc0a372
3 changed files with 7 additions and 3 deletions
  1. +2
    -1
      src/Services/Identity/eShopOnContainers.Identity/Configuration/Config.cs
  2. +1
    -1
      src/Services/Identity/eShopOnContainers.Identity/wwwroot/css/site.min.css
  3. +4
    -1
      src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts

+ 2
- 1
src/Services/Identity/eShopOnContainers.Identity/Configuration/Config.cs View File

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


+ 1
- 1
src/Services/Identity/eShopOnContainers.Identity/wwwroot/css/site.min.css
File diff suppressed because it is too large
View File


+ 4
- 1
src/Web/WebSPA/eShopOnContainers.WebSPA/Client/modules/basket/basket-status/basket-status.component.ts View File

@ -31,7 +31,10 @@ export class BasketStatusComponent implements OnInit {
}); });
// Subscribe to Drop Basket Observable: // 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 // Subscribe to login and logout observable
this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => { this.authSubscription = this.authService.authenticationChallenge$.subscribe(res => {


Loading…
Cancel
Save