PackageDescription: OAuth


O Auth

Last published: September 4, 2010 by 'postgres'

Defines 5 Classes
Extends 5 Classes


OAuth and xAuth Implementation for Cincom Smalltalk.

Warning: only the xAuth implementation works against twitter, and that's the only system I tested against

To try this, first create a settings file (note, example values taken from http://dev.twitter.com/pages/auth)

[Settings]
requestTokenUrl=''https://api.twitter.com/oauth/request_token'
requestAccessTokenUrl='https://api.twitter.com/oauth/access_token'
requestAuthorizationUrl='https://api.twitter.com/oauth/authorize'
callback='http://localhost:3005/the_dance/process_callback?service_provider_id=11'.
consumerKey='GDdmIQH6jhtmLUypg82g'
consumerSecret='MCD8BKwGdgPHvAuvgvz4EQpqDAtx89grbuNMRd7Eh98'
version='1.0'
signatureMethod='HMAC-SHA1'

Then try executing:

auth := Authenticator fromSettings: (OAuth.Settings fromFile: 'PutYourSettingsFileHere').
^auth executeTokenRequest.

In theory, you should get a response token.