Welcome to Windows CardSpace
Tasks :

Sample Simple-STS CardSpace in C#

File Details
Downloads: 6401 File Size: 905.7kB
Posted By: garretts Views: 16790
Date Added: 2 Oct 2006

Here's an updated version of the STS sample.

Garrett

Comments
 

veugelenw said:

thx !!
3 Oct 2006 1:23 PM
 

Anonymous said:

This sample is much better than the previous one. I can create *.crd without any problems. However, I’m unable to retrieve the Managed card form SampleSecurityTokenServices. Repro: 1. Run SampleSecurityTokenService.exe to accept Managed Cards 2. Go to https://www.fabrikam.com/CardSpace/Sample.htm and click on “Click here to get the Token” 3. Select the Managed Card and Send. Windows CardSpace tries to contact https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex and receives the following error. “Your data could not be retrieved from the Managed Card. Check your network connection and verify you have supplied the correct authenticated credentials. In the Event Log, I found: There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found. Inner Exception: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex'. Inner Exception: The remote server returned an error: (502) Bad Gateway. Additional Information: Microsoft.InfoCards.TrustExchangeException: The Identity provider end point was not found. ---> System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex'. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) --- End of inner exception stack trace --- at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState) at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever) at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode) at Microsoft.InfoCards.RemoteTokenFactory.DoMexExchange(TokenCreationParameter param, IWebProxy proxy) My auto-proxy has been turned off and www.fabrikam.com is on the list of “Do not use proxy server for address beginning with:”. Any idea how to fix this?
3 Oct 2006 4:52 PM
 

GP said:

Hello, I am running Vista RC2. First I executed SampleSecurityTokenService.exe. Then I created managed card with CardWriter.exe as described in documentation and I have imported that card in CardSpace (double click). After that I pressed button "Click here to get the token", I have selected managed card (the card was empty - no name, surname, PPID etc). I have pressed explicitly button "Retrieve" but the Card was still empty. After that I have pressed button "Send" and in the sample.htm token has been retrieved in the TextArea element of HTML page. When I press button "Click here to send the card to server" a got the error page with explanation: "Claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname not found" What am I doing wrong? Mybe I am missing something during card creation? Than you in advance!
6 Nov 2006 7:23 AM
 

LT said:

Has anyone tried the setup script in Windows Vista RC2 and beyond? The sample Simple-STS setup seems broken at many places, including CAPICOM verification and IIS7 scripts.
6 Nov 2006 11:06 AM
 

LT said:

For the Bad Gateway problem, it seems like the proxy is doing somehting, even if you put the www.fabrikam.com in the exception box. Do not use any proxy and you should be able to by pass the Bad Gateway problrm.
9 Nov 2006 11:26 PM
 

Babu said:

I installed this sample. When I try to run this I am getting the following error message. Please help me solving this probem. It is very urgent There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found. Inner Exception: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/usernamepassword/mex'. Inner Exception: The remote server returned an error: (407) Proxy Authentication Required. Additional Information: Microsoft.InfoCards.TrustExchangeException: The Identity provider end point was not found. ---> System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/usernamepassword/mex'. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper) at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) --- End of inner exception stack trace --- at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper) at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState) at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever) at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode) at Microsoft.InfoCards.RemoteTokenFactory.DoMexExchange(TokenCreationParameter param, IWebProxy proxy) --- End of inner exception stack trace ---
14 Dec 2006 9:37 AM
 

Claudio said:

Hi, I followed the instructions, but while the www.fabrikam.com website installation goes OK, I cannot contact the STS service listening on HTTPS. I can use self issued cards, but not managed ones. I get this error message: There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found. Inner Exception: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex'. Inner Exception: The underlying connection was closed: An unexpected error occurred on a send. Inner Exception: Authentication failed because the remote party has closed the transport stream. Additional Information: Microsoft.InfoCards.TrustExchangeException: The Identity provider end point was not found. ---> System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/selfissuedsaml/mex'. Any idea? Thanks!
9 Feb 2007 11:53 AM
 

Jayant D. Kulkarni said:

Simple security token service does not work. I tried a lot on the same but no success. I am also not able to validate a managed card. When I installed a managed card, it is empty. When I say retrieve it says invalid credentials. I saw many people facing the same problem. No one is posting the reply. If somebody can help me out, I'll be very thankful to him/her.
2 Mar 2007 4:49 AM
 

Amazed said:

The text for the paragraphs in the user comments on this page are truncated on the right by about 20 characters. Using IE 6 on W2k. If I copy and paste the text, I get all the text, but the display is absolutely truncated. The text is not wrapping properly.
6 Mar 2007 8:30 AM
 

Amazed said:

The Text On This Page Is Not Wrapping Properly
6 Mar 2007 8:31 AM
 

lbussard said:

I listed few configuration problems I encountered while using this sample on Vista at http://www.geocities.com/laurentbussard/CardSpace/
8 Mar 2007 6:16 AM
 

peter said:

what are sts cards
24 May 2007 5:45 AM
 

Anonymous said:

in sample website, On clicking "Click here to send the card to the server" button, I'm not getting Cardspace dialog
24 Feb 2008 1:06 PM
 

booo said:

Yes, this script fails? store.Close no such method? Every MS sample that uses these setup scripts always fail. I never bother.
31 Mar 2008 12:41 PM

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us