« February 2010
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      
       
Today

Blog::Navigation

Blog::Editing

Bookmarks::Blogroll

Blog::Referrers

Today's Page Hits: 132

Site notes

This page validates as XHTML 1.0, and will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. It was created using techniques detailed at glish.com/css/.

Powered by Roller Weblogger.
« Handling Token and... | Main | Handling Token and... »
Monday Mar 30, 2009

Handling Token and Key requirements at Run Time, Part II: Claims, TokenType, etc




In the previous blog, I gave an overview on how to handle
token parameters and requirements at run time on the client side.

While it is more or less straight forward with TokenType. KeyType,
etc., it requires extra effort for managing Claims requirement at run time:

1. Claims are defined as an extensible element in the WS-SecurityPolicy spec:

  <wst:Claims Dialect=”http://schemas.xmlsoap.org/ws/2005/05/identity”
     xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
  </wst:Claims>

It is up to the applications and profiles of WS-Trust to define the content
of the Claims. So you need to implement com.sun.xml.ws.api.security.trust.Claims
to manage claims in your environment. Here is a sample
for managing claim types of the following form:

  <wst:Claims Dialect=”http://schemas.xmlsoap.org/ws/2005/05/identity”
     xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
     xmlns:ic="http://schemas.xmlsoap.org/ws/2005/05/identity">
     <ic:ClaimType
       Uri=”http://schemas.xmlsoap.org/ws/2005/05/identity/claims/locality”/>
     <ic:ClaimType
       Uri=”http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role”/>
   </wst:Claims>

2. Make run time requirement for claim types on the client side:

Using STSIssuedTokenFeature with STSIssuedTokenConfiguration.
Check out some sample code here.

3. If you you are using Metro based STS, you can obtain the claim types and
provide the user attributes accordingly in your custom STSAttributeProvider.
Here is an example.



Comments:

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 04:46 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 04:54 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 04:57 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:02 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:06 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:09 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:17 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:21 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 01, 2009 at 05:31 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 03, 2009 at 02:21 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on June 03, 2009 at 02:27 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on July 07, 2009 at 05:34 AM PDT #

[Trackback] Security Token Configuration in Metro

Posted by Kumar Jayanti's Blog on July 08, 2009 at 12:45 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
Locations of visitors to this page
Copyright (C) 2003, jiandongg