vCenter Single Sign-On C# Sample Code
The code examples in the following sections show how to obtain a holder-of-key security token. The code examples are based on the AcquireHokTokenByUserCredentialSample project contained in the vCenter Single Sign-On SDK. The project is located in the dotnet samples directory (SDK/ssoclient/dotnet/cs/samples/AcquireHokTokenByUserCredentialSample).
- Project file – AcquireHokTokenByUserCredentialSample.csproj
- Sample code – AcquireHokTokenByUserCredential.cs
- Declarations that override the .NET SecurityPolicyAssertion – CustomSecurityAssertion.cs
- SOAP header manipulation code – CustomSecurityClientOutputFilter.cs