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 Authentication #393

Open
JodieM opened this issue Jan 15, 2021 · 4 comments
Open

JWT Authentication #393

JodieM opened this issue Jan 15, 2021 · 4 comments

Comments

@JodieM
Copy link

JodieM commented Jan 15, 2021

Please add JWT as an authentication option. This is a great tool for dot net developers, but everyone should be using the best authentication possible to connect to our production Salesforce orgs. Salesforce says JWT is the preferred method for server to server communications so this package should allow it.

@claboran
Copy link

claboran commented Feb 1, 2021

@JodieM - We have been thinking about the topic in our projects here. Having large .Net applications running on Heroku and talking to a bunch of sandboxes. So I came up with an own implementation: ForceDotNetJwtCompanion. Recently put it on Nuget and migrated the first of our applications successfully. But needs a bit more testing. Looking forward to your comments...

@JodieM
Copy link
Author

JodieM commented Feb 10, 2021

Oh thanks @claboran that looks great... apart from the being untested bit... it's hard to switch out something in a production org that is untested... (but don't ask why we are using a many year old unofficial library in production). Anyway I will at least ask the dev team if they will be willing to test it, and we will ensure we test it on a sandbox and test site :).

@claboran
Copy link

@JodieM: thanks a lot. We are migrated one of our connected apps and what should I say, no problems so far. But we are still in UAT phase, so let's see. Security is always a sensitive topic.

@deesejohn
Copy link

The ForceClient accepts HttpClients as constructor arguments (https://github.com/wadewegner/Force.com-Toolkit-for-NET/blob/master/src/ForceToolkitForNET/ForceClient.cs#L30). I believe you could write some middleware (DelegatingHandler) to handle creating the JWT and setting the authentication header.

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

3 participants