Hi Farasath, On Tue, May 22, 2018 at 11:32 PM, Farasath Ahamed <[email protected]> wrote:
> > > On Mon, May 21, 2018 at 6:27 PM, Nilasini Thirunavukkarasu < > [email protected]> wrote: > >> Hi, >> >> I am going to introduce following APIs for script-based conditional >> authentication. >> >> 1. lockUserAccount(user) >> >> - locks the user account. Only the admin can unlock the account >> >> *Example:- *If the user A has logged in from a different country, then >> User A's account can be locked using the above function. >> >> >> 2. enableUserAccount(user) >> >> - When the user account is in disable state admin can enable the user >> account using the above function. >> >> >> 3. getLocalUser(user,idp) >> > How about naming this function getAssociatedLocalUser(user, idp)? It gives > a better indication of what the function is meant for IMO > +1 > >> - Get the local user. If it is a federation login, check whether the >> federated user is associated with a local user. If there is a user >> association then return the associated local user, if not return null. >> - Parameters:- user - federated user, idp - federated identity >> provider >> >> *Example:- *UserA has an association in IS with his Facebook account. >> If the UserA logs in from facebook, his associated local account can be >> retrieved using above function. >> >> >> 4. associateUserAccount(localuser, fuser, fidp) >> >> - Associate the local user with the federated user. >> - Parameters:- fuser - federated user, fidp - federated identity >> provider >> >> *Example:- *If the user A has two accounts, an account in IS and an >> account on Facebook. We can use above function with the >> two-step authentication to associate those two accounts automatically. >> >> >> Any suggestions would be appreciated. >> >> Thanks, >> Nila. >> >> >> -- >> Nilasini Thirunavukkarasu >> Software Engineer - WSO2 >> >> Email : [email protected] >> Mobile : +94775241823 >> Web : http://wso2.com/ >> >> >> <http://wso2.com/signature> >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Farasath Ahamed > Senior Software Engineer, WSO2 Inc.; http://wso2.com > Mobile: +94777603866 > Blog: blog.farazath.com > Twitter: @farazath619 <https://twitter.com/farazath619> > <http://wso2.com/signature> > > > > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Nilasini Thirunavukkarasu Software Engineer - WSO2 Email : [email protected] Mobile : +94775241823 Web : http://wso2.com/ <http://wso2.com/signature>
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
