chulkilee / ex_force

A Salesforce REST API wrapper for Elixir
https://hex.pm/packages/ex_force
MIT License
38 stars 26 forks source link

JWT Oauth Flow? #66

Open skostojohn opened 2 years ago

skostojohn commented 2 years ago

It looks like ex_force doesn't presently support the JWT Oauth flow offered by Salesforce... I use this authentication flow quite often connecting to Salesforce for integration projects - it would be useful for me and perhaps others.

I am an experienced Salesforce developer, but a beginner with Elixir. I would be happy to try and get a PR going to add JWT support to ex_force, if you would be open to it - what do you think?

Thanks! Scott

chulkilee commented 2 years ago

That would be a great addition! Please feel free to create a PR

Essentially, we need followings:

If a salseforce access token is in JWT, it would be good to add a (delegation) function to parse the token (e.g. just returning Joken struct)

skostojohn commented 2 years ago

Great - I'll get to work. Thanks for the pointers to help me get started.