Scope: RFC 6749 defines the OAuth 2.0 roles, grants, endpoints, and token abstraction. RFC 9700 supplies current deployment security guidance that supersedes some historical choices. Neither document makes a valid access token proof of every runtime, task, delegation, or user-identity claim.
A JavaScript application runs entirely in a user's browser and contains a fixed client secret in its downloaded code. The server proposes using that value as proof that requests came from the registered client.
A client uses the authorization code flow through a browser. Its current design accepts any HTTPS callback URI, does not bind the callback to the initiating transaction, and does not bind code redemption to the initiating client instance.
The token is valid for B's resource API. The design also needs to know which runtime may present it, which task was approved, and whether onward delegation is allowed.