Use the OOB process - so pass oauth_callback=oob and you should get a PIN from Twitter which you then use in fetching your access_token.
http://dev.twitter.com/pages/auth_overview#oob -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk