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 ExtensionsProvidersProvidersWeb service with Role- and Membership providerWeb service with Role- and Membership provider
Previous
 
Next
New Post
1/11/2010 5:38 PM
 

Hi,

I have been developing modules, providers etc. for the last few year for DNN 4 and 5. But when I had to create custom role and membership
providers while using external databases and web services, I ran across a few very annoying "features" that seem to be very hard to bypass.
 

  • DNN is getting some information from database views, like vw_UserRoles and vw_TabPermissions, which means that if either DNN Users or
    Roles tables are empty, those view query based features and functions don't work.
  • DNN supports only integers as role and user ids, so using guids or other values in an external database is useless, unless you create
    mapping tables and link those ids together in the providers (not the major problem and maybe not possible to change without greater harm done)
  • DNN is sometimes querying for roles by (seemingly) hardcoded value(s), like "Administrator" even though the role provider doesn't
    offer a role with that name

 

Is there anyone who have any suggestions as to how to bypass these things, without creating e.g. users and roles to DNN's tables with similar values as the ones in the external database? It's not a hard job, but it doesn't sound like it should be... checking every time when a user logs in or someone is adding a new user based tab permission, if that user or that role already exists in DNN's table, and if not, creating them. I would appreciate if there is some kind of useful solution, instead of these solutions I have found.

 
New Post
1/13/2010 12:29 PM
 

DNN by default is sitting on TOP of the membership provider, you can see this already with the existance of the two user tables (aspnet_users and users).  I do not see an easy workaround to this behavior, and in general you are most likely going to expose yourself to a lot of risk, and core modifications.

I mgiht evaluate what you are trying to do, and rather than shipping the information off elsewhere, work on a sync situation.  In all of my 100+ custom DNN integrations for authentication and security I have never had to create a custom provider, as it was always too risky of an implementation when another solution was possible.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
1/14/2010 4:10 AM
 

Why would DNN have a provider architecture if you're not supposed to add or replace providers? As far as I understand, that's the whole point of having providers in the first place.


 
New Post
1/18/2010 6:16 AM
 

So, synchronizing seems to be only reasonable option. I found second one too, but since recently found information, I don't think it's wise to partly override ex. DataProvider providers methods, that are using those views directly via stored procedures. Since database can be change and if structure is changing enough, I will have to update those methods too... not maybe in every update, but maybe too many times in it's lifetime.

I would be happy, if DNN will support some day replacing totally (ex.) Membership and Roles providers. Maybe in 6.x version? :)

 
New Post
10/8/2010 6:01 PM
 
I am having the same exact problem.  I have implemented the membership provider and it works great.  The only issue I am having is with the role provider I am implementing.  It seems that even though the role methods called in my custom provider, that the DNN core somehow still looks at its "Roles" table for the roles and thus my menu tabs aren't really aligned to the users correct roles.  I only seem to be half way implemented.  Have you found any kind of a solution?  I am stumped with this problem and can't find a solution.  Here is a link to my current post waiting for an answer. http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/390057/scope/posts/Default.aspx
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsProvidersProvidersWeb service with Role- and Membership providerWeb service with Role- and Membership provider


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