Thanks Prabath.

Regards,
Dinusha.


On Mon, Apr 14, 2014 at 10:36 PM, Prabath Siriwardena <[email protected]>wrote:

>
> ApplicationManagementService/getServiceProvider(spName).getLocalAndOutBoundAuthenticationConfig().getAuthenticationSteps()
>
> In each step - you can find an array of FederatedIdentityProviders..
>
> Thanks & regards,
> -Prabath
>
>
> On Mon, Apr 14, 2014 at 10:30 PM, Dinusha Senanayaka <[email protected]>wrote:
>
>> Hi,
>>
>> Previously we had following code segment to get the $subject. But with
>> the current refactoring of identity 'ApplicationManagementService' API,
>> this has been changed and could not find a way to re-factor this code
>> segment  using 'ServiceProvider' object to achieve $subject. Could someone
>> from IS team provide some insight for this ?
>>
>>
>>
>> // returns the set of IdPs which are already added to the SP as trusted.
>>             try {
>>                 ApplicationDTO appDto =
>> appMgtStub.getApplication(serviceProvider);
>>                 StepDTO[] steps = appDto.getAuthenticationSteps();
>>                 if (steps != null && steps.length > 0) {
>>                     for (StepDTO step : steps) {
>>                         if (step.getStepIDPs() != null &&
>> step.getStepIDPs().length > 0) {
>>                             for (StepIDPDTO idp : step.getStepIDPs()) {
>>                                 TrustedIdP tIdp = new TrustedIdP();
>>                                 tIdp.setName(idp.getIdpName());
>>                                 idps.add(tIdp);
>>                             }
>>                         }
>>                     }
>>                 }
>>             }
>>
>>
>> Regards,
>> Dinusha.
>>
>> --
>> Dinusha Dilrukshi
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to