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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom AuthenticationCustom Authentication
Previous
 
Next
New Post
1/12/2011 12:49 AM
 
Hi - 

I'm trying to create a custom authentication module that can be enabled (like the LiveID, OpenID).. and I'm able to create it, however I'm not able to turn off the default/standard login, or at least make mine the default.

So I have (2) questions;

1. Is it possible?
2. Is this the best approach for creating a custom login that validates against an external (web service) data store?

Thanks,

Jay
 
New Post
1/12/2011 11:02 AM
 
There are a few options I can think of.

To answer your questions:
1. Yes, you can set which page is the default login page for the site. You can change the default login from /login.aspx to something else. You can set this in admin > site settings > advanced settings. You create a page called like "userlogin.aspx", put your custom module on it, then set it as the default login page.

2. Ultimately you will have to authenticate to the DNN framework. If your module first checks authentication against LiveID, OpenID, etc, it will then have to log that person into the DNN framework. This can all be done programmatically, no problem. Just have your module take the user credentials, authenticate to LiveID, then check DNN database for that user. If the user exists in DNN also, login to the DNN framework. If it doesn't, create it and login. First you handle the authentication to the external source, then with same credentials authenticate to dnn. It can all be done behind the scenes easily. It's kind of a hassle but the bottom line seems to be that in the end you will have to authenticate to the DNN framework regardless of what you did before that.
 
New Post
1/12/2011 7:17 PM
 
the wiki has a page on creating custom authentication providers - http://www.dotnetnuke.com/Resources/Wiki/tabid/1409/Page/Authentication_Providers/Default.aspx

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/12/2011 10:18 PM
 
Hi Kelly,

Thanks alot for the reply.  It sounds like a custom login module is the way to go, rather than a custom Authentication Provider.  And so to be clear, I can intercept logins.. validate against external data source - then look them up in DNN - if they aren't a user, add them and login them in, otherwise just login them in.

Thanks for clarification!

Jay
 
New Post
1/12/2011 10:22 PM
 
Thanks Cathal - that is the tutorial I used to create my Authentication Provider trial.  However, I'm not able to use only my Provider on the login page.. it shows the Standard and my Provider.. I can't default to only my Authentication Provider - which was a draw back for me.

Thanks,

Jay
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom AuthenticationCustom Authentication


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