OAuth 2.0
OAuth 2.0 is an authorization framework that lets an application obtain limited access to a service without receiving the user's password.
OAuth 2.0 is a framework for granting an app limited access to a service. It can let an app act for a user without receiving that user's password. It also supports some app-to-service access. The framework concerns permission to use a service. It is not, by itself, a standard for proving a user's identity.
How OAuth 2.0 grants access
An authorization server issues an access token. The app presents that token when it calls a protected service. The token has defined limits, such as a lifetime and scope. The service must check that it is valid and suitable for the request. IETF RFC 6749 defines the framework.
Example in healthcare
A patient could allow an approved app to read certain records. The app gets a token for that limited task. It should not get the patient's account password. The service still needs to ensure that the request is for the correct patient. A scope alone may not express every record access rule.
Security choices matter
Tokens need protection in storage, in transit and in logs. Avoid putting them in places that expose them to other people. Use supported libraries and follow current OAuth security guidance. That guidance updates older advice and discourages unsafe flows.
Review access control at the receiving service. OpenID Connect adds an identity layer for sign-in. Single sign-on is a broader login experience. Neither term should be treated as a synonym for the OAuth framework.