The StackExchange sites use the DotNetOpenAuth library (previously known as DotNetOpenId library).
You basically need a User table and a User_OpenID table with a one-to-many relationship. Scot Hanselman has a good basic article or try a more in depth overview