You need to Register for free and Login to post a message in the forum.

Forum

combining module types
Last Post 2010-09-11 10:13 AM by Cheryl Bearden. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Cheryl BeardenUser is Offline
Nuke Newbie
Nuke Newbie
Posts:2

--
2010-09-07 02:04 PM  
Is it ok to create an authentication provider that also is a desktop module? I'm asking because we are building a Shibboleth authentication provider and also want to allow administrators the ability to map Shibboleth roles to DNN roles using a grid. This did not seem to work from the Settings page but when I also configured the module as a desktop module with view and edit forms, and added the grid there, it worked ok.
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-09-07 11:59 PM  
Take a look at how other Authentication Providers work. If what you need to do is simply part of the configuration of your provider, you probably don't need a module.

A more detailed explanation might help me understand.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-09-08 12:00 AM  
Just to add a bit ... if your Authentication Provider can read the output of your module, there's no reason that you shouldn't do it this way.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Cheryl BeardenUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-09-08 12:25 PM  
Thanks very much for replying.

I have a module that does Shibboleth authentication that we are going to make Open Source since it is an authentication that the Universities are using. The Shibboleth authentication is working ok.

On the Settings.ascx control, along with allowing the admin user to update some general settings, I have added a Radgrid that will let the user select Shibboleth roles to be paired with existing DNN roles. Later in the authentication code, these Shibboleth roles will be mapped to the corresponding DNN roles. To display these role mappings I am using a RadGrid with an Edit Form where the user can update role mappings and insert new role mappings. There is also a delete command on the RadGrid (which works ok, the delete command doesn't use the Edit Form.)

I tested this Radgrid on a simple web page before bringing it into DNN just to get the Radgrid code working. The Insert, Update, and Delete all worked ok outside of DNN. But when I pulled the code into DNN, the Delete still works, but the Update and Insert event routines never fire from the Settings.ascx control.

So I also tried to configure the authentication provider as a Desktop Module with View and Edit forms and tested the RadGrid from the View and Edit controls and it works fine, with the DNN View control containing the RadGrid and the DNN Edit control containing the Edit form. RadGrid Events fire ok, from the View and Edit control instead of the Settings control.

So I was planning on making the Authentication provider a module also. But then, I haven't seen an example of combining a module with an Authentication provider in the Authentication providers I've looked at. But it seems to work. We are saving the role mappings in portal_settings.

Cheryl BeardenUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-09-08 10:08 PM  
With more testing from the Settings.ascx control, I've found that any events from the Grid Edit form of the RadGrid are not fired. So it seems that from an Authentication Provider Settings control, you can only fire events from the Settings.ascx page itself, and not from a secondary user control like the RadGrid Edit form.

So, I'm hoping that it is ok to combine an Authentication provider with a desktop module so that I can still use the RadGrid.
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9008
Avatar

--
2010-09-09 12:21 AM  
As long as they share data, there shouldn't be a problem.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Cheryl BeardenUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2010-09-11 10:13 AM  
I saved table updates in portal_settings using PortalController.UpdatePortalSetting and the data was available both from the View control and on the Settings control. Thanks again.
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

RE: DNN site automatically redirects to a different domain name. by imran shaikh
Thanks for the reply joe this is my portalalias table entries 2 0 localhost/tradeupgrade -1
RE: "Good" hosting providers by ejcullen rene
informative!!!
RE: URL Master Module doesn't work on IHostASP hosting by ejcullen rene
informative!!!
RE: shared web hosting by ejcullen rene
informative!!. i got hosting service from http://www.thewebpole.com/ my hosting company offers you
RE: iPhone website logo in DNN root directory by JohnnieD
I'm supposed to add this link to make my custom logo show up on iPhones. Where in DNN would I a
iPhone website logo in DNN root directory by JohnnieD
I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
RE: Fixed size container by Joseph Craig
Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
Fixed size container by Aggiedan97
I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds