Rocket chat authentication based on woocommerce membership


I have Rocket Chat integrated with a Wordpress membership site. We allow users to purchase a membership (woocommerce membership plugin) and join the website which includes access to the rocket chat chat rooms. We are using MiniOrange as the SSO to allow access to the chat.

I would like to add automatic disallowing of a user when their Wordpress membership account is expired or canceled. Can someone give me tips or point me in a direction to do that? I haven’t found much results. The idea is that the SSO would include a custom response based on membership status and allow/disallow based on that and not just user name.

Server Setup Information

Apps Engine Version|1.14.0

Any additional Information