Hi,

On Wed, Jul 15, 2015 at 5:46 PM, Suhan Dharmasuriya <[email protected]> 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: [email protected],   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to