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

Feature request: limit login attempts with sf_auth #117

Open
vancelopez opened this issue Mar 3, 2022 · 3 comments
Open

Feature request: limit login attempts with sf_auth #117

vancelopez opened this issue Mar 3, 2022 · 3 comments
Assignees
Labels
enhancement Feature request
Milestone

Comments

@vancelopez
Copy link

I use the sf_auth with the RStudio password api so that I don't have to hardcode my password in the script.

sf_auth(
  username = "",
  password = rstudioapi::askForPassword("Please enter your password"),
  security_token = "",
  verbose = TRUE
)

The issue is that the entry field is masked and sometimes I will type my password incorrectly. When this happens, sf_auth will reattempt login multiple times. SF will lock my account due to the number of incorrect attempts.

Can an argument in sf_auth for number of login attempts be added?

Many thanks. This is a fantastic package.

@StevenMMortimer
Copy link
Owner

Thanks @vancelopez! – I'll take a look, but I might de-prioritize now that Salesforce is requiring customers to use multi-factor authentication (MFA) (announcement link). The switch to MFA means that users will not be able to log into the Salesforce APIs using a username, password, and security token. Rather, they will need to generate an OAuth token interactively via the browser or some other means. I'm less familiar if there are service account tokens for Salesforce like Google's APIs allow developers to generate.

@StevenMMortimer StevenMMortimer self-assigned this Mar 7, 2022
@StevenMMortimer StevenMMortimer added the enhancement Feature request label Mar 7, 2022
@StevenMMortimer StevenMMortimer added this to the Future milestone Mar 7, 2022
@vancelopez
Copy link
Author

vancelopez commented Mar 8, 2022 via email

@StevenMMortimer
Copy link
Owner

@vancelopez Great find. I don't quite understand the phrase "human login" because I don't see a definition of what that means anywhere, but your hunch might be correct that if you're logging into the API via security token (along with username and password) that is probably not a human login because there isn't a place for a human to type in their security token on the login screen. I would assume that is a programmatic/non-human login.

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

No branches or pull requests

2 participants