SSO credentials validity / forced logout

Thank you. Having just switched from a Facebook group (which required manually removing members when they cancelled their subscriptions) it’s unfortunate that, with Discourse, I will still have a manual process to ensure cancelled members can’t access my forum. That leads to a question.

Is there any non-manual mechanism - however creative - where I can ensure a user who no longer has a valid account i.e s/he cannot log on, will be forcefully logged out of Discourse?

It does seem logically weird to have the SSO mechanism block users from logging on (recognizing the fact they don’t have a valid account), but if they simply access the forum on a regular basis (less than the timeout) they can access the forum for as long as they like, until I log them off manually.

I guess my final option, potentially, is to write a plugin that will call a Discourse API to log them out when they cancel.

Open to any and all ideas here. As you can tell, I REALLY want to avoid having to do this manually :slight_smile:

Thank you.