OAuth 2.0 Client Credentials Flow in .NET Framework - Netsuite
Hey there! Let me tell you about this project I tackled recently. I was given the assignment to integrate NetSuite , and the task was to implement the OAuth 2.0 Client Credentials Flow , also known as M2M (Machine to Machine). Now, there’s a handy SDK for this in .NET Core , but guess what? There wasn’t one for the old .NET Framework . So, I had to roll up my sleeves and dive deep into research mode. I started by checking out the .NET Core library to understand how it worked. It was like being a detective, piecing together clues. I had to recreate that code for the .NET Framework. Let me tell you, it wasn’t easy. There were a lot of trial and error moments, testing different .NET libraries to get the authentication just right. But after much persistence and some coffee-fueled late nights, I finally cracked it ! Now, I know others are struggling with the same issue. I wanted to share my journey and the solution I came up with. Here’s the entire ...