erlangpack / erlang-oauth Goto Github PK
View Code? Open in Web Editor NEWAn Erlang OAuth 1.0 implementation
License: MIT License
An Erlang OAuth 1.0 implementation
License: MIT License
Thanks for Erlang OAuth!
We use it in Zotonic for (among other things) the connection with Twitter.
Currently we are working on pushing all Zotonic modules and core to Hex.
That also involves having all dependencies on Hex as well.
Would you like to publish erlang-oauth to Hex?
It would be really nice if the oauth_uri:decode/1 function was exported so it can be used externally as well.
A number of deprecation warnings have appeared when using R14B, due to changes in the public_key API:
src/oauth_rsa_sha1.erl:8: Warning: public_key:pem_to_der/1: deprecated (will be removed in R15A); use file:read_file/1 and public_key:pem_decode/1
src/oauth_rsa_sha1.erl:9: Warning: public_key:decode_private_key/1 is deprecated and will be removed in R15A; use public_key:pem_entry_decode/1
src/oauth_rsa_sha1.erl:21: Warning: public_key:pem_to_der/1: deprecated (will be removed in R15A); use file:read_file/1 and public_key:pem_decode/1
I'm not using the RSA signing module, so don't really have a way of testing any further. I've simply commented it out in my code. Sorry that's not more useful.
when i try to include your code as rebar`s dependecy, it fails on compile with message:
Dependency not available
I discover that rebar search "src/{APPLICATION_NAME}.app.src" or "ebin/{APPLICATION_NAME}.app" files in dependency directory and compare it with name in rebar.config file. First time i add it to rebar config, string was:
{deps, [ {'erlang-oauth', "1.2.*", {git, "git://github.com/tim/erlang-oauth.git", {tag, "v1.2"}}} ]}.
to correct this issue you must change "erlang-oauth" atom to "oauth" and now it will be equal to "ebin/oauth.app"
so string will be:
{deps, [ {oauth, "1.2.*", {git, "git://github.com/tim/erlang-oauth.git", {tag, "v1.2"}}} ]}.
p.s. should i wrote it here or not?
Due to the missing makefile it fails to compile:
Could not compile :oauth, no "mix.exs", "rebar.config" or "Makefile" (pass :compile as an option to customize compilation, set it to "false" to do nothing)
Hi.
I create a twitter app. Got Consumer key, Consumer secret, Access token and Access token secret.
How I can work with Twitter API?
oauth:get(URl, [], Consumer, Token, Secret) return me result as to not authorized user.
will oauth2 be supported?
regards
I'm trying to build an image with alpine linux, mix deps.compile
however failes on this library with error:
==> oauth
{"init terminating in do_boot",{undef,[{make,all,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Makefile:7: recipe for target 'compile' failed
make: *** [compile] User defined signal 2
I have oauth loaded due the twitter library dependency.
My dockerfile installs openssh-client erlang-dev make g++
and erlang version is:
cat /usr/lib/erlang/releases/RELEASES
[{release,"Erlang/OTP","18","7.1",
[{kernel,"4.1","/usr/lib/erlang/lib/kernel-4.1"},
{stdlib,"2.6","/usr/lib/erlang/lib/stdlib-2.6"},
{sasl,"2.6","/usr/lib/erlang/lib/sasl-2.6"}],
permanent}].
I've read from another issue to be sure you've OTP but it seems to be there. Any clue?
It appears crypto:hmac/3
is no longer provided in the latest OTP in favor of crypto:mac/4
.
I stumbled upon riverrun/one_time_pass_ecto#9 while debugging the following error:
2021-06-03T19:28:42.547964-04:00 error: [api] Unexpected termination: {undef,[{crypto,hmac,[sha,"false&false","GET&http ...
I'm trying to use Dropbox's PUT (https://www.dropbox.com/developers/reference/api#files_put) and am unclear how it should work.
looks like body hash is defined here: http://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/drafts/4/spec.html
When compiling this library on Windows 10, this error occurs:
C:\erlang-oauth>make
process_begin: CreateProcess(NULL, rm -rf ebin/*.beam, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [clean] Error 2
make
is running from: C:\Program Files (x86)\GnuWin32\bin
Hi,
Will this package work on Windows please? I am getting this error on "mix ecto.setup":
'make' is not recognized as an internal or external command
Which is understandable as MAKE is Linux and the Windows equivalent is NMAKE.
Thanks for any assistance.
Currently you can't use binaries with oauth:signature, for Params for example.
And also can't use non-ascii in Params
The compile on R16B01 fails with this message:
src/oauth.erl:144: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3
It's because the fix this commit 118e9f7 will not conditionally compile in the old function.
Getting this on erlang 18
{"init terminating in do_boot",{undef,[{make,all,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
make: *** [compile] User defined signal 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.