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

Will Salesforce's MFA requirement impact this package? #113

Closed
BowTiedBleh opened this issue Dec 7, 2021 · 3 comments
Closed

Will Salesforce's MFA requirement impact this package? #113

BowTiedBleh opened this issue Dec 7, 2021 · 3 comments
Assignees
Labels
question or help Clarification or help may suffice to resolve
Milestone

Comments

@BowTiedBleh
Copy link

Beginning in Feb 2022 Salesforce is going to require customers to enable multi-factor authentication in order to access SF products.

https://admin.salesforce.com/blog/2021/everything-admins-need-to-know-about-the-mfa-requirement

Do you suspect that the sf_auth() function will be impacted by this at all?

@StevenMMortimer StevenMMortimer added the question or help Clarification or help may suffice to resolve label Dec 22, 2021
@StevenMMortimer
Copy link
Owner

@klaw2 Great question. The {salesforcer} package supports Single Sign-on (SSO) via OAuth 2.0. My guess is that the MFA will simply require an extra step in the browser when you first authenticate. Note that, if you login via OAuth 2.0 and authenticate via the browser, the OAuth token will be cached in the working directory so you do not need to authenticate through the browser and MFA every single time you use the API.

With the package you have the option to either use the connected app bundled with the package or create your own in your org (recommended). I'd recommend reading the Salesforce documentation to Create a Connected App and also taking a look at this issue (#107) to see my thoughts while helping another user configure their instance to use Okta to login.

Finally, it's tough for me to debug across other environments, but feel free to reach out with questions or let me know if you found a certain trick or hack that's needed to make things work. I'm happy to improve upon the existing functionality and other users can benefit.

@BowTiedBleh
Copy link
Author

Thank you, that's helpful to know. Will definitely follow up if there are any additional steps that require some sort of workaround.

@StevenMMortimer
Copy link
Owner

I've updated the documentation here to reflect this change on Salesforce's end. I've also given kudos to @klaw2 in the NEWS for v1.0.1 which pushed the updated documentation. I'll close this issue for now and we can re-open or create new issues, if needed. Thanks again @klaw2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question or help Clarification or help may suffice to resolve
Projects
None yet
Development

No branches or pull requests

2 participants