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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules401 Unauthorized. Authorization has been denied for this request. Trying to use MemberDirectory/API 401 Unauthorized. Authorization has been denied for this request. Trying to use MemberDirectory/API
Previous
 
Next
New Post
3/7/2013 5:21 AM
 

Hi all,

I'm trying to build a custom component based on DNN´s MemberDirectory component. I only need to change some behaviours in the view and the search fields, so I've grabbed the base code and started my own "MemberDirectoryAdvanced" component.

So far, I'm able to build my code and install my component, using the same code base as the original MemberDirectory component. However, I'm stuck at the following error:

401 Unauthorized. Authorization has been denied for this request.
While trying to access the following url: http://dnndev.me/DesktopModules/MemberDirectory/API/MemberDirectory/AdvancedSearch?userId=2&groupId=-1&pageIndex=0&pageSize=20&searchTerm1=&searchTerm2=&searchTerm3=&searchTerm4=&_=1362649909598

I'm assuming that I need to authenticate with the API somehow before making the call.. But I'm kind of lost at this point. Could you guys help me?

 Thanks in advance

 

 
New Post
3/7/2013 8:01 AM
 
By the way,

I've also tried the following:
Tried the original MemberDirectory component, everything works fine. Removed the component from the website.
Compiled a new component using MemberDirectory code base, installed using the same name. And I'm getting the same error.. what I'm missing here?

Thanks!
 
New Post
3/7/2013 9:37 AM
 
It appears that your enhanced MemberDirectory is calling into the original MemberDirectoryController. If so and if your enhanced MemberDirectory has a different fully-qualified namespace (which it most should have) than "DotNetNuke.Modules.MemberDirectory", note that the original MemberDirectoryController class is decorated with the attribute [SupportedModules("DotNetNuke.Modules.MemberDirectory")] which would denyaccess to the giving the security error you are seeing.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules401 Unauthorized. Authorization has been denied for this request. Trying to use MemberDirectory/API 401 Unauthorized. Authorization has been denied for this request. Trying to use MemberDirectory/API


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