I need created custom login page for my mobile app without using token.
I considered the following solutions:
h++ps://login.salesforce.com?un="+username+"&pw="+password+"&startURL=/apex/somepage That will work, but if you enter an invalid username and password you get sent back to the standard SFDC login.
I found solution (http://brianpeddle.com/2011/06/06/building-a-custom-salesforce-login/), but in this solution need enter password + security token. It is not possible for me.
Go to Setup->Security Controls->Network and enter the IP address or address range of your server. Login attempts from white-listed IP addresses do not require a security token, but this solution is not suitable, because it is mobile app and I do not know ip range.
Could you help me?