I found several answers and solutions, but most of it somehow integrated server-side helper.
I need something like Facebook OAuth Javascript for Twitter.
Desired flow should be (the same as FB.login() provides):
- User clicks "Authorize this app to use my account" button/link
- (le wild) Popup appears
- User will be allowed to login and allow or deny authorization of my Twitter Application
- Popup will close and javascript callback will get access token
Without using any my custom server side page.
I couldn't read out from dev documentation how could I implement this.