How to restrict access to a forum based on woocommerce subscription?

I am planning a website design and it seems one of the added values I would want is a forum for paid members to gain access to and have the access revoked if they cancel their monthly subscription.

Which WordPress forum plug-in is the best option in general and which one allows for restriction based on woocommerce subscriptions?

Also, if there is an SSO option for a third party forum software, such as Discourse, that might be way better if it’s possible.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer