Hi Mahesh, Yes that is true. I might have not expressed my requirement clearly. The thing is, we need both username and the *name of the user *for the author tag in a commit. It's the latter that we do not have with us.
Thanks, On Wed, Sep 2, 2015 at 2:30 PM, Mahesh Chinthaka <[email protected]> wrote: > Hi Kavith, > What I meant was after user provide username and password, if login is > successfull ; you can keep username somewhere in your side. > Then whenever you need username, you can get it from there. No need to > invoke a AF api. > > Thanks > > On Wed, Sep 2, 2015 at 2:14 PM, Kavith Lokuhewage <[email protected]> wrote: > >> Hi Mahesh, >> >> I am not clear what you meant by "without calling AF". We only take >> username and password from users. Then we invoke this api - >> "/appmgt/site/blocks/user/login/ajax/login.jag" - with username and >> password to get the authenticated cookie. This API only returns true or >> false to indicate login status. We store the cookie returned form it and >> use it for other API calls during the session. Other-than that, we don't >> have any details about the logged in user. >> >> However, seems there is an alternative. "getUsersOfApplication" returns >> all the users of a particular app along with their usernames + First Names >> and Last names. Since we already have the username of logged in user, we >> can iterate through the users returned by above API to get the First Name >> and Last Name of current user. >> >> >> Thanks, >> >> On Wed, Sep 2, 2015 at 12:40 PM, Mahesh Chinthaka <[email protected]> >> wrote: >> >>> Hi Kavith, >>> >>> No, AF dont have a jaggery API to get the user. >>> >>> Hope this is for logged in user. Cant you get the logged in user from >>> your side with out calling AF. >>> >>> On Wed, Sep 2, 2015 at 12:11 PM, Kavith Lokuhewage <[email protected]> >>> wrote: >>> >>>> >>>> Hi, >>>> >>>> We need to get the name of the user in order to use it as the author >>>> name for commits (This is achieve [1]) >>>> >>>> Is there a jaggery API available for this? Or should we use use an >>>> admin service? >>>> >>>> Thanks, >>>> >>>> [1] https://wso2.org/jira/browse/TOOLS-2728 >>>> -- >>>> *Kavith Lokuhewage* >>>> Software Engineer >>>> WSO2 Inc. - http://wso2.com >>>> lean . enterprise . middleware >>>> Mobile - +9477-9-145-123 | +9471-455-6-401 >>>> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> >>>> Twitter <https://twitter.com/KavithThiranga> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Mahesh Chinthaka Vidanagama* | Software Engineer >>> WSO2, Inc | lean. enterprise. middleware. >>> #20, Palm Grove, Colombo 03, Sri Lanka >>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >>> Email: [email protected] | Web: www.wso2.com >>> >> >> >> >> -- >> *Kavith Lokuhewage* >> Software Engineer >> WSO2 Inc. - http://wso2.com >> lean . enterprise . middleware >> Mobile - +9477-9-145-123 | +9471-455-6-401 >> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> >> Twitter <https://twitter.com/KavithThiranga> >> > > > > -- > *Mahesh Chinthaka Vidanagama* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 63 63 083 | Work: +94 112 145 345 > Email: [email protected] | Web: www.wso2.com > -- *Kavith Lokuhewage* Software Engineer WSO2 Inc. - http://wso2.com lean . enterprise . middleware Mobile - +9477-9-145-123 | +9471-455-6-401 Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419> Twitter <https://twitter.com/KavithThiranga>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
