4

I am getting below error while running the application

An exception of type 'System.Security.Authentication.AuthenticationException' occurred in Sdl.Web.Mvc.dll but was not handled in user code Additional information: Unauthorized Request -- Please check your configuration settings to make sure your authentication details are correct.

Not sure which which authentication details i need to pass i am following the the doc link

  • Can you fix the documentation link, it currently points to the error message rather than an actual url? – Bart Koopman Apr 11 '16 at 11:23
  • What is in the DXA log file (C:\Temp\logs\Site.log by default)? – Rick Pannekoek Apr 11 '16 at 17:57
6

Please update the web.config file and toggle value of oauth-enabled to true.

<add key="oauth-enabled" value="true" />
1

In Web.config:

   <!-- CIL caching can be enabled on Staging; CIL 8.1.1+ will bypass the cache for XPM Session Preview.  The service-caching-expiration setting is in seconds. -->
<add key="service-caching" value="true" />
<add key="service-caching-expiration" value="60" />
<add key="oauth-enabled" value="true" />
<add key="oauth-client-id" value="cduser" />
<add key="oauth-client-secret" value="CDUserP@ssw0rd" />
  1. Set oauth-enabled" value="true"
  2. Set the same Token as in cd-client and cwd-client conf for "ClientSecret" in
    web config for key="oauth-client-secret" value="CDUserP@ssw0rd"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.