Published Monday, December 04, 2006 3:49 AM by martin

Modifications for Simple STS sample to include Display Token

I've been playing with the simple STS sample from netfx3.com, which you can get here.  Installing the STS on my local box, everything works fine for me (on RTM bits).  The only slight wrinkle is that the sample STS, while it returns a working security token, does not include a display token in its response.  From a user's perspective, that means I see no claim data when I click "preview" and then "retrieve".

I modified part of the sample so that it does return a display token.  The file I changed is called RequestSecurityTokenResponse.cs.  If you take my modified version, you'll probably want to modify it yourself because it contains some hard-coded claims about me :-)  In general I doubt you'd want to hard-code any claims, but I just wanted to demonstrate how to insert a display token - where you get the claim data from is your problem :-)

You can get my modified file here.