Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Internet (https://www.clubdelphi.com/foros/forumdisplay.php?f=3)
-   -   Identificar a cada usuario en mi Proxy (https://www.clubdelphi.com/foros/showthread.php?t=35296)

ivanball 06-09-2006 17:57:04

Identificar a cada usuario en mi Proxy
 
Hola a todos:

En mi empresa hemos creado un Proxy (HTTP) para proveer algunos servicios al usuario, pero necesito identificar a cada usuario de manera única en el lado del servidor donde está instalado el proxy.

Sé que si el usuario usa el navegador IE, se pudiera crear un Browser Helper Object que se encargaría de "modificar" el request que se origina en el navegador del usuario y en ese momento le podría adicionar un UserID en la cabecera del request HTTP. ¿Cómo podría obtener una solución que funcione para cualquier navegador (IE, Netscape, Firefox, etc)?

Gracias por adelantado.

jachguate 06-09-2006 18:25:46

Debes retornar un error 407 al navegador, y el repetirá el request con la información de autenticación adecuada en el header.

Cita:

Empezado por HTTP protocol
407 Proxy Authentication Required
This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy. The proxy MUST return a Proxy-Authenticate header field (section 14.33) containing a challenge applicable to the proxy for the requested resource. The client MAY repeat the request with a suitable Proxy-Authorization header field (section 14.34). HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication"

Hay mas información en el rfc 2617: HTTP Authentication: Basic and Digest Access Authentication

fuente: Status Code Definitions
Hasta luego.

;)


La franja horaria es GMT +2. Ahora son las 01:28:38.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi