Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Error Authentication User at AZUREWEBSITES AcquireToken ADAL version 2.14

$
0
0

I am able to authenticate a user when working locally, using the line

            AuthenticationResult result = context.AcquireToken(_resource,clientID, returnURI, PromptBehavior.Always);

Locally, I get the signin screen and the UserInfo.

When I publish the web app to Azure, the code above fails with this error

"Error HRESULT E_FAIL has been returned from a call to a COM component"

[COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]
   Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask(Task`1 task) +89

What causes this?  I am publishing to the shared site (eg  xxx.azurewebsites.net)  -- so I don't have access to the server machine to make any changes beyond using the portal.

The code works as expected locally.



Sam


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>