ex_force icon indicating copy to clipboard operation
ex_force copied to clipboard

JWT Oauth Flow?

Open skostojohn opened this issue 3 years ago • 2 comments

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

skostojohn avatar Feb 21 '22 02:02 skostojohn

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)

chulkilee avatar Feb 21 '22 03:02 chulkilee

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

skostojohn avatar Feb 21 '22 22:02 skostojohn