As per the offline discussion I had with Johanne I solved this by using the method [1]
[1] getServiceProviderByClienId(clientId, reqType, tenantDomain) rgrds Awanthika On Mon, Apr 27, 2015 at 9:25 AM, Awanthika Senarath <[email protected]> wrote: > Hi all, > > > I need to do $subject for a REST API in WSO2IS 5.0.0. > > I can retrieve the SAMLSSOServiceProviderDO when I have the issuer as in > [1]. but I observed that SAMLSSOServiceProviderDO does not have the > Application name of the SP in it. In order to retrieve the claims of the SP > using [2] I need to get the application name of the SP. > > Is there a way that I could get the application name of the SP when I have > the issuer of a particular SP? > > Or is there a better way to retrieve the claims of the SP? > > > [1] SSOServiceProviderConfigManager spConfigManager = > SSOServiceProviderConfigManager.getInstance(); > SAMLSSOServiceProviderDO spDO = > spConfigManager.getServiceProvider(issuer); > > [2] ServiceProvider serviceProvider = > applicationManagementOSGIService.getApplication("");//todo get application > Name > ClaimConfig claimConfig = serviceProvider.getClaimConfig(); > claimsSet = claimConfig.getIdpClaims(); > > thanks and regards > > -- > Awanthika Senarath > Software Engineer, WSO2 Inc. > Mobile: +94717681791 > > > -- Awanthika Senarath Software Engineer, WSO2 Inc. Mobile: +94717681791
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
