Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a..."Password Retrieval is not enabled" when accessing WebAPI"Password Retrieval is not enabled" when accessing WebAPI
Previous
 
Next
New Post
12/18/2013 2:25 AM
 

Hi Guys,

I have been read through many responses and examples on the net regarding this issue. However supply a complete answer with regards to how to resolve this issue. I require my WCF Service to work for Registered users.

 

The response below found on a different website, certainly does not resolve any issues.

When accessing the WebAPI from the bowser (when not already logged in) you are prompted for you username and password (http authentication) but this fails with a "Password Retrieval is not enabled" error if you configured DNN to store passwords hashed and disabled password retrieval (password retrieval is impossible with hashed password)
Password retrieval is no issue here, you're just logging in. Also it is only the setting which causes the problem, not the actual way passwords are stored. Changing the setting, without any change to the stored passwords, will allow you to log in.
 
Steps to reproduce:

  • in the web.config, set enablePasswordRetrieval="false" and passwordFormat="Hashed". (this only impacts new passwords, existing passwords are unchanged)
  • Create a WebAPI service and don't allow anonymous access.
  • Using a webbrowser with which you are not logged in, visit the api url
  • You will now be prompted for your username and password, enter it. (use a valid user name, password doesn't matter)
    Actual result:
    Error message: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.Configurati sException: Password Retrieval is not enabledSource 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: [Configurati sException: Password Retrieval is not enabled]   System.Web.Http.WebHost.HttpControllerHandler.EndProcessRequest(IAsyncResult result) +113   System.Web.Http.WebHost.HttpControllerHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +10   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970141   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
    Expected result:
    Access to the web service.
     
    NB: If you were already logged into the DNN site when accessing the WebAPI, you would have been authenticated based on your cookie and granted access.
      NB: This looks very much like the error I got when adding a new site while the password format was set to "hashed"DNN-25851 which might mean it's a bug on 7.04, 7.05 and 7.06 but can not be reproduced in 7.1?


Jonathan Sheely's example dnndashservice  does not work either .... 

Would it be possible for DNN Developers to provide a sample of the web.config configuration and a client call to make this work? 

 
New Post
12/18/2013 3:56 AM
 
please log your findings at Support.dnnsoftware.com, thank you.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/18/2013 6:20 AM
 
There was some talk about webapi side authorisation being better supported in dnn 7.2.1 ... Not sure that it is currently supported in the way you require ... As far as I recall the current implementation expects an existing dnn context from a physical logged in user
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a..."Password Retrieval is not enabled" when accessing WebAPI"Password Retrieval is not enabled" when accessing WebAPI


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out