These days, Lazarus feels old und unmodern ... API authentication lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- xint · 2025-02-20 12:08 I need to be authentic to an API with a “ bearer secret”, and for all “modern” languages there are SDKs and libraries that handle this seamlessly. The previous API my client used came with username and secret, which took me an hour to read, understand and implement. But now I wasted almost my whole day authenticating with a bearer secret with no success. I've read, installed and tried so much - does it really have to be that complicated with Lazarus !? ---------------------------------------------------------------------- MarkMLl · 2025-02-20 13:10 In that case why don't you take the trouble to tell us what you're trying to do? What API, what OS, what version of Lazarus etc... as well as what you've tried and what went wrong. MarkMLl ---------------------------------------------------------------------- Warfley · 2025-02-20 18:46 Bearer tokens are just a type of Authorization header. You can set it using FPHttpClient with a single line of code: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i httpclient.AddHeader('Authorization', 'Bearer ' + token); What do you need an SDK for? ---------------------------------------------------------------------- Joanna · 2025-02-20 22:20 Quote These days, Lazarus feels old und unmodern .. Oh dear, that’s horrible! Lazarus was written just for you, you should ask for your money back! ---------------------------------------------------------------------- silvercoder70 · 2025-02-21 08:21 Did you look here -  https://forum.lazarus.freepascal.org/index.php?topic=55962.0 and link to here - https://github.com/MWASoftware/oauth2client