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 ForumsAuthenticationAuthenticationWriting Authentication ProviderWriting Authentication Provider
Previous
 
Next
New Post
8/14/2009 1:32 PM
 

Hello,

I am using DNN 4.8.0.

I am trying to create my own authentication provider for a client.  The authentication will be happending via a Web Service.  In order to use the web service a few parameters need to be passed to it.

In order to get started, I manually added records to the following tables: Packages, Authentication, and ModuleSettings.  I copied the DesktopModules\AuthenticationServices\DNN folder renamed it to MyAuthProvider and modified the code behind of those files and the .resx file

I can run the Web site and when I go to Admin->Authentication page, I do see my new Authentication Provider listed.  The problem is that the two options below my provider are Enabled and UseCaptcha (same as the DotNetNuke Authentication Settings).

I added three records to the ModuleSettings table MyAuthProvider_Enabled, MyAuthProvider_UserName, MyAuthProvider_Password.  I would like the Enabled to be a checkbox and the other two to be displayed as textboxes.  How do I get these three options to be displayed under my new Authentication Provder?

Is there some source code I could look at?

Thanks,

 
New Post
8/15/2009 11:24 AM
 

Checkout the DotNetNuke Tips and Tricks #12: Creating your own Authentication Provider blog post by Joe Brinkman. You can also checkout the source code for my Twitter Authentication Provider I created shortly after I read his blog post. It mainly sounds like you need to modify the setting control to include the additional configuration items your webservice requires. My Twitter Authentication Provider adds quite a few additional settings as an example, you'll want to look at the Components\AuthenticationConfig.vb file...

 
New Post
8/18/2009 4:46 PM
 

Oliver,

Yes, thanks for the sample.  That looks like exactly what I am looking for.

Dave

 

 
New Post
8/18/2009 11:50 PM
 

 Joe's example is geared towards DNN 5 but Michael Washington has used Joe's to show how to do one for DNN 4.9 (which would be the same as you'd need to use for DNN 4.8). Michael's blog on it is here.

 
New Post
8/19/2009 11:04 AM
 

 I'm not sure if this is supposed to be a new thread, but I am in the process of writing an authentication provider for DNN 5.1.1. I've looked at all the examples previously mentioned. I've pulled down the source of the AD, OpenID, and LiveID providers. The problem comes when I call UserController.ValidateUser. I use the overload where you can pass in an auth type. It always returns null for me. I've stepped into that method and find that it eventually calls a stored procedure call GetUserByAuthToken. I looked at that SP and saw that it is trying to inner join the Users view to a table called UserAuthentication. When I looked at the UserAuthentication table, I found that it was blank. How is that table supposed to be populated? I enabled the OpenID and LIveID providers to see if they put anything in that table and they didn't so it seems to me like both those providers, if I were to set them up, wouldn't work either because SP will always return nothing as long as UserAuthentication has no records. Any recommendations?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationWriting Authentication ProviderWriting Authentication 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