Hi Gayan,
Yes. We need to specially handle username claim("
http://wso2.org/claims/username").
Shall we add a method to User[1] class to retrieve username?
[1] - https://github.com/wso2/carbon-identity-mgt/blob/
master/components/org.wso2.carbon.identity.mgt/src/main/
java/org/wso2/carbon/identity/mgt/User.java
Thanks,
Thanuja
On Tue, Mar 14, 2017 at 12:12 PM, Gayan Gunawardana <[email protected]> wrote:
> Hi All,
>
> Don't we have to provide an API to get username claim from domain level.
> I am suggesting to have some thing like
>
> org.wso2.carbon.identity.mgt.User userStoreUser = identityStore.
> getUser(userId);
> userStoreUser.getUsernameClaim();
>
> Currently we handle username claim as just an another claim but it should
> be treated as special claim because username is the human friendly unique
> identifier for users.
>
> In domain-config.yaml we can define username claim for each domain.
>
> Also another requirement is when we get username from out side
> application, we need to retrieve corresponding user from identity store so
> we need to set value got from out side to appropriate claim. In that case
> there should be a way to identify username claim.
>
> WDYT?
>
> Thanks,
> Gayan
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: [email protected]
> Mobile: +94 (71) 8020933
>
--
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture