-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AcquireTokenForClient Stuck when application hosted in IIS #2520
Comments
@TejendraPrasad : did you try to use fiddler to understand if Azure AD is reached at all? |
Hi Jean, thank you for coming back. Its working with console and IIS express... only when I host the application in IIS it gets stuck. Console, IIS express all in same server, so i assume network issue ruled out as its everything on same box. Thank you! |
I meant a port configuration issue in IIS, @TejendraPrasad |
Can you please elaborate port configuration please. and where to configure it @jmprieur In Binding, we use 443 and 80. Do i need to configure redirect uri in azure ad? |
for AquireTokenForClient, you don't need a redirect URI, @TejendraPrasad |
@jmprieur thank you for the guidance. And you are right it was IIS Proxy and Port issue When i executed My Web app with my ID as Application Pool Identity it worked, However, when i tried with default application pool Identity it was not working. After tracing i found default application pool identity did not know which IP Proxy to use in order to connect. So, i added below config in web.config
|
Thanks for sharing the solution, @TejendraPrasad |
Hi,
I am trying to acquire Token using certificate to connect Graph API. Its works in console application and local IIS express.
However, when hosted same in IIS it get stuck and timed out.
Code Snippet:
I have createD ASP.NET MVC for poc and will convert into Web API.
I do not want to use user login token or such... There is no login page and we want to interact MS Graph API using application specific Client ID.
Please some one help on this.
thank you!
The text was updated successfully, but these errors were encountered: