Implementing OAuth 2.0 Authentification for Microsoft Dynamics 365 Guides inside of Unity

I’m creating a 2D Unity app not a mixed reality app

Basically, My goal is to get the text contents inside of the Steps from Guides Datverse and display it within a canvas with a 2D Unity app

I followed this tutorial for a simple Console Application and it worked fine,

I also followed this postman tutorial relating to getting the access token: Use Insomnia with Dataverse Web API - Power Apps | Microsoft Learn

Currently, I’m trying to transfer what I learned/used in the Console App into a simple Unity app, e.g using ‘UnityWebRequest’ calls

My problem is when I’m making the initial call to get the token, I’m doing something wrong but I don’t what it is.

Maybe it’s the wrong parameters that I’m sending or the URL is wrong

but when I make the request I get a response in the Unity console (in the form of text) of the sign-in webpage

It’s too hard to figure out.

the c# example does something with headers too, try adding those to unity webrequest also?

I am a beginner in the development field. Still, I wonder why you use unity for Implementing OAuth 2.0 Authentication if it is mainly used to create some games or large applications. As for Microsoft Dynamics 365, I don’t understand anything at all because even my uncle, an experienced businessman, hired a team of people from Microsoft Dynamics 365 Business Central Specialists UK - d365experts who helped him set up and implement this software for his business. I hope you will answer my question because I am interested in everything about development.