Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT Oauth Flow? #66

Open
skostojohn opened this issue Feb 21, 2022 · 2 comments
Open

JWT Oauth Flow? #66

skostojohn opened this issue Feb 21, 2022 · 2 comments

Comments

@skostojohn
Copy link

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
Copy link
Owner

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)

@skostojohn
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants