ghannam80

ghannam80

API authorisation using OAUTH

Hello,

I am trying to learn Elixir through building a remittance aggregator starting with consuming third party API services like MasterCard.
I tested regaular public API services with Elixir Req and livebook and it is fine but now for such services it is highly secured and encrypted.

Any idea if we have an Elixir library similar to the
one below built by MC team for OAUTH handling using RSA cryptography?

Most Liked

Lucassifoni

Lucassifoni

You can indeed spawn a Java application behaving as an Erlang Node as seen from your Elixir application, using the Java library OtpErlang.jar, built along the erlang application :jinterface.

Note that the version available on Maven is very outdated, you will have to pull it from Erlang. I have a github action here building OtpErlang.jar for the last 3 versions of OTP if you’d like. I wouldn’t advise pulling it from my repo yet but you can use it a a basis.

But in your case, I’d probably go with the Node library, or the Go library through wasmer/wasmex, since mastercard provides the same library for go, python, java, php, node, c#, and ruby. Or rewrite it in Elixir.

This would avoid running a companion java application along your main application. Also note that Jinterface/OtpErlang is now considered legacy but stable by the OTP team. This means that there are applications that actively use it and that they should not be disturbed by a breaking change, but that maybe it isn’t the best choice to depend on it for a new project today when there are alternatives.

Carefully weigh your options :slight_smile: .

Whoops, did not see the thread was 8 months old…

jan-mb-me

jan-mb-me

This talk from @sasajuric about using the Kafka java libraries might help: https://www.youtube.com/watch?v=iVHpFoDXim4

Where Next?

Popular in Questions Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement