What problem does OAuth solve?
In the traditional model, a third-party app that needed your data on another service simply asked for your password. RFC 6749, which defines OAuth 2.0, lists what goes wrong: the app has to store the password, it gets far broader access than it needs, you cannot revoke one app without changing your password, and a compromised app leaks the password itself [1]. Under OAuth the app receives an access token instead, a credential that stands for a specific scope and lifetime of access [1].
Who takes part in an OAuth flow?
The framework defines four roles. The resource owner can grant access and is usually the end user. The resource server hosts the protected data. The client is the application making requests on the owner's behalf. The authorization server authenticates the owner, obtains their approval and issues access tokens [1]. Say a calendar app wants to read meeting invitations in your email: it sends you to your email provider's consent page, you approve read-only access, and the app works with a token limited to that scope without ever seeing your password [1].
On the security side, the current guidance is RFC 9700. It forbids the resource owner password credentials grant, steers clients away from the implicit grant toward the authorization code grant, and requires public clients to use PKCE [2].
Is OAuth an authentication protocol?
No. RFC 6749 frames OAuth around delegated access, not around proving who someone is [1]. For identity, OpenID Connect adds a thin identity layer on top of OAuth 2.0 that lets clients verify the end user based on the authentication the authorization server performed [3]. OAuth 2.0 is also not backward compatible with OAuth 1.0, which RFC 6749 obsoletes [1].