OAuth2 is an authorization standard that enables third-party applications to obtain limited access to protected resources on behalf of a resource owner. It does not handle authentication. SAML is a standard for single sign-on and federated identity management. OpenID allows users to authenticate using third-party identity providers like Google or Facebook. While SAML and OpenID both use federated identity, OAuth2 focuses only on authorization of resources. Spring Security OAuth provides support for OAuth consumers and providers, while Pivotal Cloud Foundry's UAA server is an OAuth2 provider commonly used with Cloud Foundry.