Mike MacMartin wrote
Ok, let's see if I understand the architecture and all that, now:
- The user sees an Authentication Service module, which deals with the login UI behaviour. As I want to put in a URL redirect after login, this is where that should go, yes?
Yes
The Authentication Services use an underlying Authentication Provider which deals with actually validating whether users are allowed in. The AS should not, itself, do any validating.
The words service and provider are interchangeable in this process. You could look at it as one Authentication Service that can contain multiple providers or services (DNN Standard, ActiveDirectory, LiveID, OpenID, Cardspace, yours, etc.). So you can do some validation in the login.ascx.vb where you will be checking that, yes, the user has/has not logged in.
- DNN is expecting that any Authentication Service module comes with its own Authentication Provider? Thus, if I'm only using the DNN default stuff, I run into issues as I've only got the frontend changed.
See above. Have you changed the namespace etc. for your project or are you trying to use the original namespace? I think your best bet would be to create your own project/namespace, then copy/paste the DNN Standard code, make your modifications, and then build your own .dll
The .dnn file uses a different syntax for Auth_Service packages than for basic DNN modules - this further reinforces that they're considered separate things (I managed to get my DNN_Global working as a module, for a definition of "working" that involves showing up, but doing nothing :p)
So, further questions: if DNN is expecting an Auth Provider with the frontend, where can I turn that off in the code? Second, what should a valid .dnn file look like? Here's what I've got:
Global Authentication Project
X
DNN_Global
DesktopModules/AuthenticationServices/DNN_Global/Settings.ascx
DesktopModules/AuthenticationServices/DNN_Global/Login.ascx
DesktopModules/AuthenticationServices/DNN_Global
App_LocalResources
Login.ascx.resx
App_LocalResources
Settings.ascx.resx
Login.ascx
Login.ascx.vb
Settings.ascx
Settings.ascx.vb
And my final question is: what should be contained within the installation zip file?
Thanks again,
Mike
Your .dnn file looks okay. As far as what needs to be included in it; basically whatever you think you need. Have you installed the DNN Starter Kit templates? In my opinion, the best way to go is to start with the DotNetNuke Compiled Module and then create your provider/service. I'm tempted to say we should take this to email but I think in the end it'll be better if we keep it in the forum for others that are interested in creating their own provider. That's not to say that we won't have to email each other on some details.