FreePascal - not Delphi - comes with OAUTH/OAUTH2 as standard in the default packages. FreePascal, not Lazarus, and classes, not components.
I have to look up the package names you need, though, and it won't work in Delphi. fcl-web supports rest API's and there are examples too.
[edit]
The odata package contains examples.