[Mono-aspnet-list] Authentification

cvsSKA stefan.kadow at cervis.de
Tue Aug 11 10:53:48 EDT 2009



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.

-- 
View this message in context: http://www.nabble.com/Authentification-tp24915849p24919211.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list