Hi Suhan, On Fri, Jul 17, 2015 at 10:41 AM, Suhan Dharmasuriya <suh...@wso2.com> wrote:
> Hi Ishara, > > Thank you for the guidance. > Is it necessary to set the same resident IDP certificate to the IDP that > we are creating [1] [@109]? > If not, will it affect the retrieval of the Associated name functionality? > There shouldn't be a affect with certificate with Associated ID functionality. I'm not clear what your are going to do.Better if you explain what your are going to do here. > > I'm trying to get the resident IDP in App Server but unable to do so. > Therefore when creating the new IDP, I tried with setting up a dummy > certificate value with BASE64 encoded. > > [1] > https://github.com/wso2/product-is/blob/7c3cbe328ea37ecbbee995a9528d4de44495e633/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/IdentityProviderMgtServiceTestCase.java > > Thanks, > Suhan > > > On Wed, Jul 15, 2015 at 6:07 PM, Ishara Karunarathna <isha...@wso2.com> > wrote: > >> Hi, >> >> On Wed, Jul 15, 2015 at 5:46 PM, Suhan Dharmasuriya <suh...@wso2.com> >> wrote: >> >>> Hi, >>> >>> What is the functionality of $subject? >>> >> If you did an account association. Sending Associated IDP, Associated >> subject ID you can get the Associated users (Who exist in the user store) >> user name. >> >> Thanks, >> Ishara >> >>> I'm observing this operation inside UserProfileMgtService [1] when admin >>> services are exposed in App Server latest build. >>> >>> I have added an IdP with basic details [2]. >>> >>> <mgt:identityProvider> >>> <xsd:alias>https://localhost:9443/oauth2/token/</xsd:alias> >>> <xsd:certificate>BASE64 encoded String goes >>> here</xsd:certificate> >>> <xsd:displayName>Sample IdP</xsd:displayName> >>> <xsd:enable>true</xsd:enable> >>> <xsd:federationHub>false</xsd:federationHub> >>> <xsd:homeRealmId>localhost</xsd:homeRealmId> >>> <xsd:identityProviderDescription>Sample >>> Description</xsd:identityProviderDescription> >>> <xsd:identityProviderName>TestIdP</xsd:identityProviderName> >>> <xsd:primary>true</xsd:primary> >>> <xsd:provisioningRole>test</xsd:provisioningRole> >>> </mgt:identityProvider> >>> >>> After performing associateID operation, I tried to call >>> the getNameAssociatedWith through my custom client but getting a null >>> object. >>> >>> Relevant sql is as follows [3]. >>> >>> sql = "SELECT DOMAIN_NAME, USER_NAME FROM IDN_ASSOCIATED_ID WHERE >>> TENANT_ID = ? AND IDP_ID = (SELECT ID " + >>> "FROM IDP WHERE NAME = ? AND TENANT_ID = ?) AND >>> IDP_USER_ID = ?"; >>> >>> [1] https://localhost:9443/services/UserProfileMgtService?wsdl >>> [2] >>> https://github.com/wso2/carbon-identity/blob/master/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManagementService.java >>> [3] >>> https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.identity.user.profile/src/main/java/org/wso2/carbon/identity/user/profile/mgt/UserProfileAdmin.java >>> >>> Thanks, >>> Suhan >>> >>> >>> -- >>> Suhan Dharmasuriya >>> Software Engineer - Test Automation >>> >>> *WSO2, Inc. * >>> >>> lean . enterprise . middleware >>> Tel: +94 112 145345 >>> Mob: +94 779 869138 >>> Blog: http://suhan-opensource.blogspot.com/ >>> >> >> >> >> -- >> Ishara Karunarathna >> Senior Software Engineer >> WSO2 Inc. - lean . enterprise . middleware | wso2.com >> >> email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: >> +94717996791 >> > > > > -- > Suhan Dharmasuriya > Software Engineer - Test Automation > > *WSO2, Inc. * > > lean . enterprise . middleware > Tel: +94 112 145345 > Mob: +94 779 869138 > Blog: http://suhan-opensource.blogspot.com/ > -- Ishara Karunarathna Senior Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: +94717996791
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev