Graph API get token
问题 I am trying to get Graph API token on behal of the user. I am following this document https://docs.microsoft.com/en-us/graph/auth-v2-user and everything works well until the step 3 Get a Token. Here is the code I am using: Add-Type -AssemblyName System.Web $clientIDEncoded = [System.Web.HttpUtility]::UrlEncode($clientid) $redirectUriEncoded = [System.Web.HttpUtility]::UrlEncode("https://login.live.com/oauth20_desktop.srf") $scopeEncoded = [System.Web.HttpUtility]::UrlEncode("https://graph