sajanv88/AbpVue

Can I automatically log out after logging out of the authentication center first?

liquehuo opened this issue · 5 comments

Excuse me :
Can I automatically log out after logging out of the authentication center first?

If I understand your question correctly:

Yes, it is possible. When you logout from the auth server try to invalidate the token provided to the UI. Within 30 seconds you will see a popup on your screen.

Thank you

Try to validate the token provided to the UI.

is this done automatically? Do you need me to do anything else?
Sorry, I just started running the front-end, but I don't have a back-end, so I can't test it

You have to invalidate the token in the backend. UI will show this popup automatically.

Screenshot 2024-02-28 at 10 25 26

oh thanks, i got your mean!
but now, when i logout from the auth server , whether the token invalid? i want know

No. If you are using openiddict module in your Abp application then you should be able to use the method to revoke your token. https://github.com/openiddict/openiddict-core/blob/dev/src/OpenIddict.Core/Managers/OpenIddictTokenManager.cs#L1165

Refer to the openiddict/abp docs for more information.