Skip to content

Instantly share code, notes, and snippets.

@nov
Created February 3, 2010 14:21
Show Gist options
  • Save nov/293633 to your computer and use it in GitHub Desktop.
Save nov/293633 to your computer and use it in GitHub Desktop.
module OAuth
class RequestToken
def authenticate_url
params = (params || {}).merge(:oauth_token => self.token)
build_authorize_url(consumer.authenticate_url, params)
end
end
class Consumer
def authenticate_path
@options[:authenticate_path] || '/oauth/authenticate'
end
def authenticate_url
@options[:authenticate_url] || site + authenticate_path
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment