My first time using oAuth.
First question I have is: Is the response access key going to be sent to the "{"redirect_uri", "http://shipfms.com/"}"
And should I be grabbing it from a Query String there?
If so, I'm not using that uri but using a local host IP in development how would I get the access key response?
Will I have to go live to test the returned access key.
Thanks
Code:
Dim content = New FormUrlEncodedContent(New Dictionary(Of String, String) From {
{"client_id", clientId},
{"client_secret", clientSecret},
{"response_type", "code"},
{"redirect_uri", "http://shipfms.com/"},
{"scope", "https://tffproduction.onmicrosoft.com/04cc9749-dbe5-4914-b262-d866b907756b/.default"},
{"grant_type", "client_credentials"}})
Dim requestMessage = New HttpRequestMessage(HttpMethod.Post, "https://login.microsoftonline.com/ca4f5969-c10f-40d4-8127-e74b691f95de/oauth2/v2.0/token")
requestMessage.Headers.Authorization = New AuthenticationHeaderValue("Basic", headerValue)
requestMessage.Content = content