ex_force
ex_force copied to clipboard
JWT Oauth Flow?
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
That would be a great addition! Please feel free to create a PR
Essentially, we need followings:
- a function to call
POST /services/oauth2/token
- a function to build a JWT assertion - may use Joken
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)
Great - I'll get to work. Thanks for the pointers to help me get started.