[Mono-aspnet-list] Authentification

Daniel Nauck dna at mono-project.de
Tue Aug 11 11:21:59 EDT 2009


Hello,

another option is to use the internal ASP.NET authentification (forms auth).

There exist several providers for different databases, a PostgreSQL
implementation is available here [1].

Then you'll have full access to all required user, profile and session
data over the ASP.NET membership provider API.

Daniel

[1] http://dev.nauck-it.de/aspsqlprovider

cvsSKA schrieb:
> 
> Robert Jordan wrote:
>> cvsSKA wrote:
>>> Robert Jordan wrote:
>>>> cvsSKA wrote:
>>>>> Hello,
>>>>>
>>>>> I am using the HTTP-Authentification from Apache with PostgreSQL as the
>>>>> AuthDigestProvider.
>>>>> There exists an option to pass additional database attributes to the
>>>>> environment, which I want to use to pass the username to my ASP site.
>>>>> But, I can not read the environment variables named AUTHENTICATE_xxx
>>>>> from
>>>>> within my ASP site
>>>> How did you try to read the env vars?
>>>>
>>> Just for the first tests, I simply iterate the results of
>>> Environment.GetEnvironmentVariables()
>>>
>> Try HttpContext.Current.Request.ServerVariables.
>>
>>
> 
> Thanks, this helps a little!
> 
> With *ServerVariables* I get the standard CGI environment variables, with
> the REMOTE_USER key. So I can at least identify the user, which pass the
> authentication.
> 
> Unfortunately, I do not get the additional database attributes. But, I can
> access the database after the authentication process myself, this will
> suffice.
> 



More information about the Mono-aspnet-list mailing list