targetEndpointAddress =
L"
http://relyingparty/endpoint
xmlns='http://schemas.xmlsoap.org/ws/2006/02/addressingidentity'>
MIIDwj??¦N1P8uZL/ygF3rMlvFfxSWi/Ro0H8l?¬‚i7sR
KtI3/uvxK/Oo9SX3UL91KVz+5rnoB+EDoFBkUYEK
";
policy.issuerEndpointAddress = L"
xmlns='http://www.w3.org/2005/08/addressing'>
http://issuer/departmento?¬‚icensing
";
policy.issuedTokenParameters = L"
xmlns:wst='http://schemas.xmlsoap.org/ws/2005/02/trust'>
xmlns:wsid='http://schemas.xmlsoap.org/ws/2005/05/identity'
/>";
policy.privacyNoticeLink = L";
policy.privacyNoticeVersion = 0;
policy.useManagedPresentation = FALSE;
PGENERIC_XML_TOKEN securityToken = NULL;
PINFORMATIONCARD_CRYPTO_HANDLE phProofTokenCrypto = NULL;
if( S_OK !=
GetToken( 1,
&policy,
&securityToken,
&phProofTokenCrypto ) )
{
printf("GetToken failed");
}
if( !FreeToken( securityToken ) )
{
printf("FreeToken failed");
}
if( S_OK !=
CloseCryptoHandle( phProofTokenCrypto ) )
{
printf("CloseCryptoHandle failed");
}
CardSpace Without Web Services 267
The example also shows how claims can be requested;
in this case, an email address is required.
Pages:
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397