Security

Which framework lets a user grant an application limited REST API access without sharing the user's password with that application?

Show the answer

Correct answerC. OAuth 2.0

AWhy not this: Mutual TLS authenticates peers with certificates; it does not itself provide delegated user authorization.

BWhy not this: CORS controls browser access to cross-origin responses, not delegation of a user's API permissions.

CWhy this is right: OAuth 2.0 allows an application to receive limited authorization through access tokens without obtaining the user's password.

DWhy not this: HTTP Basic uses a username and password rather than providing delegated access through an authorization framework.

OAuth 2.0 supports delegated authorization using access tokens, allowing an application limited access without receiving the user's password. HTTP Basic authentication instead sends credentials with requests and does not provide this delegation framework.