Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
When I use the DnnAuthenticate token in my new Web API service I cant seem to sort out how to get authentication functioning. The service behaves as expected if IAllowAnonymous.
When attempting to pass a NetCredential of the DNN username and password with cookies enabled via httpclient I get a 500 server error.
Trying the same in my browser I see the following:
Password Retrieval is not enabled
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: Password Retrieval is not enabled
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ConfigurationErrorsException: Password Retrieval is not enabled]
System.Web.Http.WebHost.HttpControllerHandler.EndProcessRequest(IAsyncResult result) +159
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288