Coder Social home page Coder Social logo

erlang-oauth's People

Contributors

benoitc avatar dnet avatar janl avatar mworrell avatar narugami avatar rflynn avatar rustkas avatar sborrazas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

erlang-oauth's Issues

Hex package

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?

Export oauth_uri:decode/1

It would be really nice if the oauth_uri:decode/1 function was exported so it can be used externally as well.

Deprecation warnings with R14B

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.

rebar compatibility

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?

2.0 fails to compile with Elixir (mix)

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)

Twitter Api

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.

Compile errors in alpine linux

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?

OTP 24 Compatibility

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 ...

Compilation fails on Windows 10 ("system cannot find the file specified")

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

Windows NMAKE

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.

support for Erlang binaries

Currently you can't use binaries with oauth:signature, for Params for example.
And also can't use non-ascii in Params

hmac_sha does not compile on R16B01

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.

Erlang 18 - make fails

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.