I use hwioauthbundle and FosUserBundle and I need check if user Twitter ID is in whitelist. If user ID in whitelist, user authorized, if not, redirect to specific page.
For automatic registration I use custom FOSUserProvider as in that Gist, I try to check ID in this file, but this is not good way, you can onlu return false, and user get 500 error, but I need redirect.