Forum Discussion
having trouble getting oauth2 token from azure w/ java
Thanks for responding.
Somehow the http 400 throws a java IOException. In the exception code I tried reading getErrorStream() from the
HttpURLConnection ('conn' in my code above) but nothing meaningful came down. I know there is supposed to be a json
returned w/ the 400. getInputStream() didn't return anything either. Do you know how to get to it in java?
.
I'm sorry, I'm not familiar with the Java HTTP libraries.
- robert_karen11 years agoNew Member
Maybe you can clarify that I am using correct resource_uri. The one I have registerred in azure is the one included in the request for the auth. code, and it is where the code
response is sent. then that same web app which received the code is making the request for the token, which contains the same resource_uri parameter as in the request-
so the web app requesting the token includes a resource_uri which is 'itself'. is that correct? it doesn't sound right.
thanks for any help?