Written by

Senior Cloud Engineer (former Sales Engineer) at InterSystems
Question Rich Taylor · Jun 15, 2016

Oauth 1.0 library

I am in need of a routine or class method to generate an Oauth 1.0 signature.  I was about to code this myself, but thought to check first to see if anyone has already done this and is willing to share.

Thanks in advance for any help.

[UPDATE  06/28/2016]

As there appears to not be a readily available solution I created a class to provide Oauth 1.0 authentication.  This class is attached in a zip file.  Methods are provided that generate a signature for a given URL request based on a consumer key and consumer secret.  Note that the only tested use case is in the last leg authentication to an application using Oauth 1.0.   That is it does not support the workflow to request access to the application (see http://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art014 for a discussion on Oauth 1)

oauth1-utilities_0.zip

Rich Taylor

Comments

Robert Cemper · Feb 24, 2022

sorry Rich. this seems to be outdated.
all examples in OEX refer to Oauth 2.0

0
Rich Taylor  Feb 24, 2022 to Robert Cemper

Most likely true. I posted this in 2016 and even then it was a limited use case.  Still thought, at the time, that it would help someone get started.  As you noted it is quite out of date now

0
Pablo Frigolett  Jul 27, 2023 to Rich Taylor

I landed in your post a bit late. A case was submitted to me recently using OAUTH 1.0 with hmacsha256 and I could have used your solution pretty quickly. I opted for a python embedded method using oauthlib.

Anyway, great work!

Some utility class was missing from your submitted code (SungardK12.Utilities) but nothing we can't figure out.

0