[SalesForce] way to get rid of Salesforce oAuth login page

I am developing a salesforce mobile app. I want to create a customized login page to ask user to input username and password. I will use this username and password to call an external oauth service in order to call external web service. And behind the scene, I will hard code the same salesforce username and password for every user. Is this possible? If anyone can provide code example how to do this, that will be very helpful.

Best Answer

This idea defeats the purpose of oAuth and should be avoided. The point of oAuth is that 3rd party applications never handle passwords yet have permission to run as the logged in user. It also provides the user with the ability to revoke access from your application.

Related Topic