vCenter Single Sign-On Token Request Overview
The code examples in the following sections show how to use the Issue method to acquire a holder-of-key security token. To see a C# example that shows how to use the token to login to a vCenter server, see LoginByToken Example (.NET). The code examples in this chapter are based on the following Visual Studio project located in the vCenter Single Sign-On SDK .NET samples directory:
.../SDK/ssoclient/dotnet/cs/samples/AcquireHoKTokenByUserCredentialSample
The AcquireHoKTokenByUserCredentialSample program creates a token request and calls the Issue method to send the request to a vCenter Single Sign-On server.
- The program uses a sample implementation of a SOAP filter to modify the SOAP security header for the request message. The SOAP filter implementation overrides the Microsoft WSE (Web Services Enhancement) method CreateClientOutputFilter.
- The program uses the username-password security policy (STSSecPolicy_UserPwd). This policy requires that the SOAP security header include a timestamp, username and password, and a digital signature and certificate. The sample SOAP filter embeds these elements in the message.