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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Authentication, Membership, SSO, and JA-SIG Central Authentication ServiceAuthentication, Membership, SSO, and JA-SIG Central Authentication Service
Previous
 
Next
New Post
5/17/2007 3:53 PM
 

Hi All,

I've been trying to tackle a rather difficult problem (for a new DNN developer anyway). I work for a university where we have a single sign on system called JA-SIG Central Authentication Service (CAS).

www.ja-sig.org/products/cas/

I am trying to develop a module for DotNetNuke to handle some of our departmental needs. However, all systems on campus use CAS for authentication. After spending a couple weeks trying to figure out how to do this, I've resorted to asking for help here.

CAS Operations

To utilize CAS, a web site redirects the user to the CAS login URL like: https://sso.university.edu/cas/login?service=http://return.to.url.edu/default.aspx

The user is redirected to the page and signs in with their username and password. When they get the u/p correct, CAS redirects the user to http://return.to.url.edu/Default.aspx?ticket=<session ticket>

The web application then sends a call to https://sso.university.edu/cas/validate?service=http://return.to.url.edu/default.aspx?ticket=<session ticket>

The response that comes back - if the ticket is valid - looks like:
<cas:response>
<cas:netid>myusername</cas:netid>
<cas:userid>1234567890</cas:userid>
</cas:response>

DotNetNuke Operations

From what I can tell, DNN uses the signin.ascx control to handle authentication. It calls the AuthenticationController, and UserController to validate the username and password locally.

From here I'm confused about what to modify to make CAS work with DNN. I was thinking that all I needed to do was write a replacement for signin.ascx and add the user to the local database if they did not already exist. But since I do not get back a password I cannot sync DNN with CAS.

Now it looks like I have to code a concrete class for MembershipProvider, AuthenticationProvider, and signin.ascx. What am I missing here? This seems more complicated than it should be. I realize that at some point I should get the username back from CAS, validate the session, and add the user to the DNN Membership tables if it does not exist. But how do I do this without a password?

Conclusion

At this point any help would be greatly appreciated. My other option is to write an LDAP provider, although this is pretty frowned on and LDAP is going away at our institution. Shibboleth is being brought up soon and all LDAP authentication will be phased out.

Thank You,

Ben Floyd

 

 
New Post
5/17/2007 4:56 PM
 

If you are not doing password authentication within DNN you could do something like this.

Create a new module to handle the login process.  Once you get the response back wtih the username, if the users doesn't exist, then you could add them to the system, using a specific password (Stored in a config file possibly), all users would have the same password but it would work. 


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/22/2017 10:07 PM
 
hello, we are trying to do similar thing.. do you had any success ?
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Authentication, Membership, SSO, and JA-SIG Central Authentication ServiceAuthentication, Membership, SSO, and JA-SIG Central Authentication Service


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