Search Unity

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

Discussion in 'Multiplayer' started by JammiM, Nov 17, 2021.

  1. JammiM

    JammiM

    Joined:
    Oct 22, 2019
    Posts:
    1
    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,
    https://docs.microsoft.com/en-us/po...bapi/quick-start-console-app-csharp?tabs=adal


    I also followed this postman tutorial relating to getting the access token: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/setup-postman-environment

    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







     
  2. Murikbro

    Murikbro

    Joined:
    Dec 16, 2022
    Posts:
    1
    It's too hard to figure out.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,403
    the c# example does something with headers too, try adding those to unity webrequest also?
     
  4. Goretexeloh

    Goretexeloh

    Joined:
    Dec 20, 2022
    Posts:
    1
    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 https://www.d365experts.co.uk/software/microsoft-business-central/ 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.
     
    Last edited: Dec 21, 2022