scottbrady91 / Angular4-OidcClientJs-Example

Code from scottbrady91.com/Angular
https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client
71 stars 60 forks source link

Protected-Page and API are still accessible after logout from identity server! #10

Closed amirpourya closed 4 years ago

amirpourya commented 5 years ago

Protected-Page and API are still accessible after logging out from identity server!

Any Ideas or solutions? :)

scottbrady91 commented 5 years ago

Sounds like your app is not cleaning out it's storage. Unless you mean you want SSOff?

priyank89patel commented 4 years ago

@amirpourya I think you will need to add logout() method in the auth.service.ts file and call it from the client instead of directly signing out from identity server. logout(): void { this.manager.signoutRedirect(); }