Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Nicole 12/8/2006 5:38 PM
To make it easier for my users (i.e so they won't have to remember yet another password), I want to integrate our current campus-wide authentication system into Cuyahoga. I want to authenticate people through our WebAuth system (which pulls in a login form via HttpWebRequest, submits to a processing page and returns the results), but continue to use Cuyahoga for authorization.

I've looked through the current log in code including AuthenticationModule.cs, but am curious as to the best way to go about this. In other words, I want to make this as self-contained as possible so I don't have to edit any core code (I don't like to cause headaches for myself later).

Any suggestions would be greatly appreciated. Thanks!

# gedw99 12/23/2006 6:25 PM
Hey,


Just use a HttpModule that is completely separate from the Cuyahoga one. It is really easy thanks to the asp.net request and response events thrown by the asp.net pipeline, and it means you do not have to change the current code.
For authorisation it will be more work, because you want to leverage the admin screens and data storage. Modify these screens, and under the hood use your own code to get access to the authorisation roles available (if you are usign LDAP it will be easy in .NET using Directory Services.



ged
# Nicole 1/22/2007 2:23 PM
So, I got this working using a custom authentication module. In my solution, I continue to use Cuyahoga for role authorization. Everything was working fantastically on my dev server (I even customized fckeditor). I was feeling pretty good about myself. Then I moved it to production. Now I'm not feeling so smart. Authentication is still working, but authorization seems to be kaput. I never receive an "edit" link on pages with content that should be editable by my test user. If I view my user profile, it shows the correct profile info for the user I'm logged in as. I've double- and triple-checked that relevant web.config and user, role, and page info is identical on both the dev and prod sites. I'm running out of ideas -- anyone know where I can go from here to debug this problem?
# gedw99 1/22/2007 6:11 PM
Is IIS setup the same in terms of security?
# Nicole 1/23/2007 4:21 PM
Thanks for the response, gedw99. As usual, once I broke down and brought my problem to the forum, I figured it out. I'd forgotten that there are permissions at the section level as well. Once I fixed the section permissions, everything worked as expected.

I guess I really was short on sleep yesterday!