Authorization of application by user


I have created a twitter application and stored the 2 access tokens and 2 consumer keys. I also have a website that will have a button that says “Sign in with twitter”. How do I proceed to get my application authorized by the user?

PS- I have gone through the documentation for oauth token and request tokens but I could not implement it myself. Could anyone give me a detailed explanation on how to proceed?