SSO using .NET

Hello all, Im looking for some information on how one could implement SSO. Is there a way by using .NET I could write some custom login logic that would allow a user to login if they are already authenticated via a custom Authentication server.

Thanks in advance for your help,

MHoward