How safe is JSONP implementation for login functionality

Posted by MKS on Stack Overflow See other posts from Stack Overflow or by MKS
Published on 2010-12-23T07:42:05Z Indexed on 2010/12/23 7:54 UTC
Read the original article Hit count: 258

Filed under:
|

Hi Guys,

I am using JSONP for login authentication, below is sample JQuery Code:

$.ajax({  
        type:"GET",        
        url: "https://staging/login/Login.aspx",  // Send the login info to this page
        data: str, 
        dataType: "jsonp", 
        timeout: 200000,
        jsonp:"skywardDetails",
        success: function(result)
        { 
              //Do something after the success
        } 

    }); 

In above code, I am having HTTPS page for authentication, from my login dailog box, I am sending username and password to my login.aspx page, which calls "WEB SERVICE" taking input send by the login dialog page and return the users details as JSONP object.

My question is that, how safe is above implementation and do also suggest how can I improve my security implementation.

Thanks!

© Stack Overflow or respective owner

Related posts about jquery-ajax

Related posts about jsonp