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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuthentication Provider Module settingsAuthentication Provider Module settings
Previous
 
Next
New Post
8/12/2009 10:13 PM
 

 Hi All,

I've built a custom Authentication Provider, and based off our previous logon control it has two view modes (compact and big). Because our logon control used to just be a normal portal module, it had it's own settings page (and ModuleId).  Now that it is embedded within the Account Logon control as an Authentication Provider, it no longer has it's own moduleID, and so the settings collection is always empty. Also you cannot access the settings view for this control.

I understand that an Authentication Providers settings go in the Settings control defined in the Auth Provider extension configuration. However all these settings are global, and we wish to be able to configure different instances of the Account Logon control to use either the compact or big views. What is the best way to implement this? Can I access the parent Account Logon controls settings (and store these settings there)?

Thanks for any input!

Mark

 
New Post
8/13/2009 4:29 PM
 

You don't mention what version of DNN you're running but in DNN 4 the settings are stored in the ModuleSettings table and in DNN 5 they are in the PortalSettings table and can be setup for individual portals.

 
New Post
8/13/2009 6:18 PM
 

Hi Mike,

I've successfully written an Authentication provider to utilise sessions from our 3rd party application for DNN 5.1.1, and I've also migrated a set of modules previously used in DNN 4.4.0. The migration of these modules worked well, however they included a "custom" login control, which had two modes that displayed a different UI. Thus you could have multiple instances across the portal, one compact login control in the sidebar, and a larger view designed to be in the Content Pane. I decided I needed to convert my existing Custom login, with the logic of the Authentication Provider, and this works fine, but only uses the default view mode, and there is no way of accessing/editing the settings the control uses to determine it's appearance.

I've worked out the Authentication Prividers Login control gets given the moduleconfiguration context from the "Account Login" control that hosts it. This gets injected into the control via Website/DesktopModules/Admin/Authentication/Login.ascx.vb:310:

Private Sub BindLoginControl(ByVal authLoginControl As AuthenticationLoginBase, ByVal authSystem As AuthenticationInfo)
...
authLoginControl.ModuleConfiguration = Me.ModuleConfiguration
...
AddHandler authLoginControl.UserAuthenticated, AddressOf Me.UserAuthenticated
End Sub

Note that I'm looking to individually configure different instances of the hosted login control per page, so I'm looking for something tied to the ModuleSettings table via TabModuleId. Thie above code means my Auth Provider login control has access to the settings of the "Account Login" controls instance on the page, which is pretty much what I was looking for. However, the Account Login doesn't have a settings control, or a way to host settings controls for the authentication providers login control in the same way that a "normal" DotNetNuke module does (where you create an extra control in the module definition with a key of "settings"). I realise there is a global settings control - implemented in Admin->Extensions->My Authentication Provider - but I don't wish to affect the appearance of all my login modules globally.

The solution I've currently found is to add a "settings" button to my login control that appears when an admin is logged in, and embed my existing Module Settings control into the Auth Providers Login control. I have to give it the ModuleConfiguration context so that it has the right TabModuleId to write the settings against, but it works.

Since I now have a solution, I'm basically wondering if there is a better way to do this? Something that integrates into DNN better? Is there a mechanism to register a "per page" settings control for Auth Providers login controls?

 
New Post
8/14/2009 12:41 AM
 

 Unfortunately the login controls are portal wide and not per page.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuthentication Provider Module settingsAuthentication Provider Module settings


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