Kw-auth is a project mainly written in PHP, it's free.
Auth module for working with popular services (Google/Twitter/Github/etc) via OAuth and OpenID