[Pki-devel] [PATCH] pki-cfu-0009-TPS-Token-Profile-Resolver-Plugin-Framework-Ticket-4.patch

Christina Fu cfu at redhat.com
Fri May 30 22:07:56 UTC 2014


This patch implements a Token Profile Resolver Plugin Framework for 
TPS.  It allows a site to implement its own token profile resolver.

The TokenProfileResolverManager initializes the token Resolver plugin 
framework from the following configuration files:
  - <instance patch>/conf/registry.cfg
  - <instance patch>/conf/CS.cfg

The existing mapping method "getTokenType" was extracted into the 
default plugin code: MappingTokenProfileResolver.  All resolver plugin 
codes will extend from BaseTokenProfileResolver.

The most visible change from sites running previous versions of TPS is 
that the mapping related config params
e.g. op.format.mapping.xxx
have now being extracted into token resolver instance params
e.g. tokenProfileResolver.formatMappingResolver.mapping.xxxx
  where "class_id" defines the plugin implementation name defined in the 
registry.cfg
and op.format.tokenProfileResolver points to the defined resolver instance
e.g. op.format.tokenProfileResolver=formatMappingResolver

A separate ticket will be filed to provide actual plugin writing 
instruction as well as a sample plugin.

Finally, even though this patch does not directly address 
https://fedorahosted.org/pki/ticket/447 RFE: Mapping tokens to 
tokentype, where the request was to figure out the tokenType (Token 
profile) by uid instead of the current mapping method, it provides the 
means for one to write any customized plugins.

thanks,
Christina
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-cfu-0009-TPS-Token-Profile-Resolver-Plugin-Framework-Ticket-4.patch
Type: text/x-patch
Size: 62645 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140530/2ff6edef/attachment.bin>


More information about the Pki-devel mailing list