Condividi tramite


Metodo IHttpServer2::GetToken

Recupera un token di autenticazione fornito da un nome utente, una password e un metodo di accesso.

Sintassi

virtual HRESULT GetToken(  
   _In_ PCWSTR                     pszUserName,  
   _In_ PCWSTR                     pszPassword,  
   _In_ DWORD                      dwLogonMethod,   _Outptr_ IHttpTokenEntry **      ppTokenEntry,  
   _In_opt_ PCWSTR                 pszDefaultDomain = NULL,  
   _In_opt_ PSOCKADDR              pSockAddr = NULL,  
   _In_opt_ IHttpTraceContext *    pHttpTraceContext = NULL  
) = 0;  

Parametri

pszUserName
[IN] Punta al nome utente.

pszPassword
[IN] Punta alla password.

dwLogonMethod
[IN] Metodo di accesso.

ppTokenEntry
[OUT] Punta all'interfaccia IHttpTokenEntry che rappresenta il token.

pszDefaultDomain
[IN] Nome di dominio predefinito facoltativo.

pSockAddr
[IN] Indirizzo socket facoltativo.

pHttpTraceContext
[IN] Puntatore facoltativo a un'interfaccia IHttpTraceContext .

Valore restituito

Oggetto HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Valore Descrizione
S_OK Indica che l'operazione ha avuto esito positivo.

Requisiti

Tipo Descrizione
Client - IIS 7.0 in Windows Vista
- IIS 7.5 in Windows 7
- IIS 8.0 in Windows 8
- IIS 10.0 in Windows 10
Server - IIS 7.0 in Windows Server 2008
- IIS 7.5 in Windows Server 2008 R2
- IIS 8.0 in Windows Server 2012
- IIS 8.5 in Windows Server 2012 R2
- IIS 10.0 in Windows Server 2016
Prodotto - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- IIS Express 7,5, IIS Express 8.0, IIS Express 10.0
Intestazione Httpserv.h

Vedere anche

Interfaccia IHttpServer2