Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Degrade 7/17/2006 7:32 AM
Hi Guys,

First off, Cuyahoga is a great little project, and i'm glad to see someone is taking web standards in a cms seriously.

I do have a question. How hard and what would need to be done to implement the standard Membership / Roles and Authentication providers that come with .NET 2?

Any help would be greatly apprechiated

Matt
# martijnb 7/17/2006 8:52 AM
For 2.0 we've abstracted the authentication and user services. Currently the default implementations use Cuyahoga's own user and roles tables, but it must be doable to create an implentation that leverages the ASP.NET membership and roles API.
The default implementation can be found in /Core/Service/Membership (SVN).

I can imagine that the interfaces don't completely match the ASP.NET interfaces, but if you can indicate what's missing, we'll be glad to add that since supporting the ASP.NET interfaces would be a great plus.
# Degrade 7/17/2006 1:23 PM
I'm pretty new to the dot net game, but will be happy to take a look and see what i can come up with.

I'll be sure to post my findings, but if anyone would like to help out, id greatly apprechiate it.

Cheers

Matt
# Degrade 7/17/2006 2:24 PM
Ok, so in .NET 2 all providers have to implement the System.Configuration.Provider.ProviderBase abstract class.

Several more specific abstract classes which themselves implement the ProviderBase class can also be implemented. The more specific classes define the base functionality that should be available for that provider.

The several more specific abstract classes are as follows:

Membership Providers
Role Providers
Site Map Providers
Session State Providers
Profile Providers
Web Event Providers
Web Parts Personalization Providers

Details about the provider model and the formentioned classes can be found here (including a definition of the basic characteristics of each provider)

http://msdn.microsoft.com/asp.net/downloads/providers/default.aspx?pull=/library/en-us/dnaspp/html/ASPNETProvMod_Intro.asp

Now when it comes the the Cuyahoga providers, i'm not sure which route you wish to go?

Ideally, i would like to see Cuyahoga use the provider model for it's membership and roles services, but i'm not sure if what you were suggesting is to just add the required functionality to the already defined interfaces.

Anbody got any thoughts?

Matt
# martijnb 7/17/2006 2:59 PM
DegradeNow when it comes the the Cuyahoga providers, i'm not sure which route you wish to go?

Ideally, i would like to see Cuyahoga use the provider model for it's membership and roles services, but i'm not sure if what you were suggesting is to just add the required functionality to the already defined interfaces.

Cuyahoga has its own provider model that might act as a wrapper around the ASP.NET membership provider. This means that other components in Cuyahoga only use the Cuyahoga membership API and don't directly communicate with the ASP.NET membership provider.

What has to be done is to check if the functionality that is defined in Cuyahoga's membership interfaces is more or less compatible with the ASP.NET providers. If so, it should be pretty easy to implement the interfaces in classes that wrap the ASP.NET membership. If not, we have to check if Cuyahoga's interfaces need some work before it can work at all.