OAuth2 provides authorization flows for web and desktop applications, and mobile devices. OAuth2 is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service, such as Facebook, GitHub, and DigitalOcean.