Forums

 
  Support Forum  DNN General Dis...  Membership Prov...  Custom role provider
Previous Previous
 
Next Next
New Post 2/10/2007 10:33 PM
  JonnyBoats
1 posts
No Ranking


Custom role provider 

I have read your paper on implimenting membership and role providers in DNN, thank you! This is an excellent resource.

What I have is a situation where I am happy to alllow anyone to register and use my DNN portal, but I would like to assign them to a role if the user name and password they used to login can be validated by a call to a web service. In other words, by calling the web service I can determine if they should have elevated rights.

My security needs are not too strict, so I could get away with simply making the call once when they register and making a static role assignment. Of course it would be better if I could re-verify the user by calling the web service either each time they login or on a fixed interval like once a week.

What would be the simpliest way to go about this? I am using the latest build of DNN (4.4.1) and would like to make the minimum number of changes which might impact on my ability to upgrade to newer versions of DNN.

Thank you.

John Tarbox

 
New Post 2/11/2007 8:04 PM
  Henry Kenuam
29 posts
9th Level Poster


Re: Custom role provider 
Modified By Henry Kenuam  on 2/11/2007 9:09:04 PM)

So I understand, this is only during the registration process correct? (new users for the DNN site).

In the simplest scenario you could grab the 4.4.1 source code for the Membership provider and "add on" your code to call the web service and validate the username/pwd. You would add your logic to the AspNetMembershipProvider:CreateUser() method and recompile. You may want to change the Membership provider name so that when you upgrade you version of the AspNetMembershipProvider.dll is not overwritten. If you change the name you will need to update the web.config file noted in my document.

Hope this helps,

hk


Henry Kenuam
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
New Post 7/26/2008 5:09 AM
  ationchen
1 posts
No Ranking


Re: Custom role provider 

GOOD!

 
New Post 8/12/2008 4:15 AM
  Lyynx
1 posts
No Ranking


Re: Custom role provider 

I've done pretty much this but was wondering how I'd go about creating an install package for it?

I've used teh AspNetMembershipProvider.dnn file to with some changes to try to make a package but it doesn't seem to install the dll, despite it saying everything was successful. It installs the new line for my renamed provider into the web.config but no dll.

I'm uploading it via the Authentication section under the HostPortal settings page. I feel like i'm close but can't figure out why its not installing the dll.

thanks,

Stephen

 
New Post 8/12/2008 11:23 AM
  Henry Kenuam
29 posts
9th Level Poster


Re: Custom role provider 

Stephen,

Could you send me the the install package (.zip) so I can take a look? hkenuam@engagesoftware.com

regards,


Henry Kenuam
Engage Software
St. Louis, MO
314.966.4000



The leading provider of DotNetNuke support, training and custom development.
 
Previous Previous
 
Next Next
  Support Forum  DNN General Dis...  Membership Prov...  Custom role provider

Purchase

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Test Drive!

Want to find out how it works? Visit our demo site to see the modules in actions!

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Sign up for our newsletter and get the latest product updates!

Online Support

Powered by DotNetNuke