akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

sign-out route on backend does not invalidate JWT token #28

Open rbetancor opened 4 years ago

rbetancor commented 4 years ago

I buyed the flask-starter bundle and if called the /auth/logout route from the frontend code, that makes a call to the backend route /api/auth/sign-out, we get a 401 from the backend, morever taking a look at the backend code, it doesn't invalidate the JWT token created on the loging procedure, in fact the backend code does NOTHING, just return a "200 Logged out" without doing anything more.

Another thing is that the /pages/users front-end code, to list and edit users, doesn't work either, the code is there, but unable to call it to show the users table.

Seems that the bundle is mostly incomplete or broken, no docs and just only the register/login backend source code works, the rest seems like the ngx-admin standar from the github repo.

robledosm commented 4 years ago

Checking a little bit deeper, the SignOut method of the in the AuthenticationService throws a "NotImplementedException" As @rbetancor said, the controller just returns an Ok response without calling the service.