[security-dev] IDM: Support for XML configuration

Marek Posolda mposolda at redhat.com
Thu Jan 17 05:59:06 EST 2013

On 17/01/13 01:16, Anil Saldhana wrote:
> Marek,
>     we need an xml configuration for IDM. We have not started with it.
> We will be using Stax parsing (and not JAXB).  The xml configuration
> will be used by users if they incorporate idm (and nothing else from the
> PL stack).
Sure, I also though about possibility to have unified configuration file 
for whole picketlink. And obviously using Stax for parsing.

In attachment is possible configuration example. I've added new element 
PicketlinkIDM with IDM configuration used in existing Picketlink 
configuration file with some federation configuration (like SAML 
Handlers and SAML SP configuration).

So it seems that in this case we will need to extract all Parser classes 
and all BlaBlaType classes (like 
"org.picketlink.identity.federation.core.config.PicketlinkType" and 
basically all other classes from package 
"org.picketlink.identity.federation.core.config") into this 
picketlink/xml-config module and other modules like 
picketlink/federation and picketlink/idm/impl will be dependent on this 
module. Am I correct?

In this case class PicketlinkType will need another field "idmType" to 
existing, so it could be like:

public class PicketLinkType {
     private ProviderType idpOrSP;
     private Handlers handlers;
     private STSType stsType;
     private boolean enableAudit;
     private IDMType idmType;


For the format of IDM configuration itself (content of PicketlinkIDM 
element), it's still not final. It seems that I will need to add more 
things (especially realms and tiers is what I am missing now). Let me 
know if you have more ideas or if you think that format should be different.

Thanks for the feedback!
> For the project PicketLink, we need one xml configuration file (if an
> user wants) - authentication,authorization,federation,social, idm etc
> can be configured in one file. For this, we will be extending the
> federation 2.1 stax parsing to encompass the other components. We have
> picketlink.xml as the config file in 2.x
> Integrating projects such as RESTEasy, JBoss AS, GateIn etc will have
> their own configuration that deals with the IDM configuration API directly.
> Regards,
> Anil
> On 01/16/2013 05:03 PM, Marek Posolda wrote:
>> Hi,
>> I am seeing in IDM testsuites that currently there is support only for
>> programmatic IDM configuration. Is there some plan to build IDM
>> IdentityManager also from XML configuration? Maybe I can start on it
>> if nobody else is working on it?
>> I am adding some example configuration file into attachment with some
>> proposal how it could possibly looks like. Note that nothing is final
>> and some things are still missing (especially configuration of realms,
>> tiers etc.)
>> What do you think?
>> Thanks,
>> Marek
> _______________________________________________
> security-dev mailing list
> security-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/security-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: picketlink.xml
Type: text/xml
Size: 2788 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/security-dev/attachments/20130117/953c61c0/attachment.xml 

More information about the security-dev mailing list