Hi Nirmal,

Please find some points below.

1. The custom implementation should either implement
'org.wso2.carbon.identity.application.authentication.framework.handler.claims.ClaimHandler'
or default implementation of the interface 'DefaultClaimHandler'.

2. Following entry should be changed in
IS_HOME/repository/conf/security/applicationĀ­authentication.xml to have the
new handler name.
(in 'ApplicationAuthentication.Extensions.ClaimHandler' element.)

<ClaimHandler>com.wso2.sample.claim.handler.CustomClaimHandler</ClaimHandler>

In the Map returned in the method 'handleClaimMappings(..)' the custom
attribute URI and value should be present. The values in this map is then
added to the SAMLResponse as attributes, by the framework.

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka



On Sat, Jun 28, 2014 at 4:24 PM, Nirmal Fernando <nir...@wso2.com> wrote:

> Hi All,
>
> $Subject? What things one need to consider.
>
> Use case: adding a custom attribute to the SAML response.
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to