AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones varias de WEBDEV
  • Authentication mode
  • Pre-launched sessions
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns information about the certificate used by the client computer during a Web connection with authentication by certificate.
Ejemplo
// Checks whether the certificate is found and valid
IF MustBeAuthenticated = True THEN
	IF CertificateClientInfo(certificateClientPresent) = False 
		OR CertificateClientInfo(certificateClientValid) = False THEN
		// Error
		...
		RETURN
	END
	// Check the rights of the user
	...
END
// Displays in an edit control 
// the serial number of the client certificate used 
EDT_SerialNum = CertificateClientInfo(certificateClientSerialNumber)

// Retrieves the country of the client certificate used 
EDT_CertificateClientCountry_Subject = CertificateClientInfo(certificateClientSubject, certificateClientCountry)
Sintaxis
<Result> = CertificateClientInfo(<Information> [, <Sub-information>])
<Result>: Variant
Requested information.
<Information>: Integer constant
Requested informatioin about the client certificate:
certificateClientIssuerIdentification of certificate issuer. You have the ability to extract part of the information by using the <Sub-information> parameter.
Example of string returned: CERT_ISSUER=C=FR,S=NA,L=MONTPELLIER, O=PCSOFTQUAL,CN=caqual,E=qual@pcsoft1.fr
certificateClientPresentIndicates whether the client computer has provided a certificate (True or False).
certificateClientSerialNumberSerial number of certificate (hexadecimal string). Example: "00E48E2E3503C8317A"
certificateClientSubjectIdentification of the purpose of the certificate. You have the ability to extract part of the information by using the <Sub-information> parameter.
Example of string returned: CERT_SUBJECT=C=FR,S=NA,L=MONTPELLIER, O=PCSOFTQUAL,CN=twr4m.pcsoft.com,E=qual@pcsoft1.fr
certificateClientValidIndicates whether the server has validated a client certificate (True or False).
<Sub-information>: Optional Integer constant
Allows you to extract a specific information (used with the certificateClientIssuer and certificateClientSubject constants only). The full information is not always available.
The following constants are accepted:
certificateClientCommonNameCommon name.
certificateClientCountryCountry associated with the certificate.
certificateClientDistinguishedName
(Default value)
Entire list of certificate characteristics. The returned value is a string whose components are separated by a comma. For example SSL_CLIENT_I_DN=,C=FR,ST=NA,L=MONTPELLIER, O=PCSOFTQUAL,CN=caqual,emailAddress=qual@pcsoft1.fr
The following constants are used to retrieve a single information.
certificateClientEmailEmail address.
certificateClientLocalityLocality associated with the certificate.
certificateClientOrganizationCompany.
certificateClientOrganizationalUnitService name.
certificateClientStateState where the certificate was created.
certificateClientUserIDUser identifier.
Observaciones

Authentication mode

There are two modes to authenticate clients to the web server:
  • authentication by the Web server. In most cases, this type of authentication is based on the authentication as domain user or server user.
  • authentication by certificate. In this case, the following checks are performed:
    • Checking the presence of a certificate.
    • Checking the validity of the certificate.
    • Checking the authorizations of the user.

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
Componente: wd300page.dll
Versión mínima requerida
  • Versión 16
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 06/06/2025

Señalar un error o enviar una sugerencia | Ayuda local