You've probably seen this on a web application you use. When you go to create a new account for that site, you have the option of logging in using an existing Google or Facebook account. Many users really like this option because it's one less password to remember.
Google, Facebook, Microsoft, and Twitter all offer the ability for external applications to authenticate using their services. Once incorporated, your application login screen would look something like this: