Hi all,
I have been working on Twitter integration into my Web Wiz powered website and the good news (from my point of view!) is that it is now up and running.
I plan on sharing the code with the community to help improve security once it's all done. I have utilized the oAuth code provide from this website ( http://scottdesapio.com/OAuth/ - http://scottdesapio.com/VBScriptOAuth/) and from there I have integrated this into Web Wiz.
Existing process includes:
- From the login screen I have added a login to Twitter button, clicking on here will run through Twitter authentication. Once this has been returned the following will be checked:
* Does the username already exist in the system? If not, a redirection is then made to the registration page.
* Does the username already exist in the system with a Twitter authentication flag in tblAuthor. If so, process the login.
* Does the username already exist in the system with the Twitter authentication flag set to false in tblAuthor. If it does, the user is redirected to be advised of this. Eventually the plan will be to allow existing users to switch authentication method between Twitter authentication and Web Wiz authentication. - Tweets can be posted directly from the home page currently. The tweet process works absolutely fine. Trying to re-post the form to spam Twitter doesn't work - Twitter doesn't allow double posting so spam checks are done automatically and authentication to Twitter is all completed through oAuth.
- I have already tested signing in with Twitter and then removing the app authorisation. Obviously until you log into the website again or try posting a tweet you will remain logged in. Authenticating against Twitter all the time doesn't make any sense to me - but it may be a security requirement down the road.
Any ideas on extending this would be welcomed.
If you would like to test existing functionality please go to www.gardenboard.co.uk.