There are already several tools to restrict access based on user roles, for example Members, Advanced Access Manager, Restrict Content, Page Security, Maven Member, User Access Manager, WordPress Access Control, Role Scoper, Press Permit, … However, none of them allows to restrict access of users not logged as WordPress users but with OpenID.