You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

  • User logs in to external system and implicitly gains access to Joget Workflow without being prompted to login again.
  • Used with JavaScript API
  • Perform actions in callback of successful login
    <script type="text/javascript" src="http://localhost:8080/jw/js/jquery/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="http://localhost:8080/jw/js/json/util.js" ></script>
    
    <script type="text/javascript" >
    $(document).ready(function(){
        var loginCallabck = {
            success : function(response){
                if(response.username != "roleAnonymous"){
                    alert("login successfully");
                }else{
                    alert("login fail");
                }
            }
        };
        AssignmentManager.login('http://localhost:8080/jw', 'admin', 'admin', loginCallback);
    });
    </script>
    
  • No labels