-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
MFA (and possibly Okta) login help #120
Comments
Hi @nick-moreno-cffc! You'll see that the OAuth key, secret, and callback URL are package options. Lines 12 to 14 in a1e1e9c
The default values correspond to a connected app that I have setup for others to use if they don't want to setup their own connected app. When you setup your own connected app, you should see its key and secret. I'd recommend using the same callback URL ( options(salesforcer.consumer_key = "YOUR APP KEY")
options(salesforcer.consumer_secret = "YOUR APP SECRET")
options(salesforcer.callback_url = "http://localhost:1410/") # only needed if you use a different callback URL See below for screenshots of the two sections that I configured when setting up my app: 1) 'API (Enable OAuth Settings)' and 2) 'OAuth Policies'. If this is new to you, then I'd highly recommend reading the Salesforce documentation Create a Connected App and start with Configure Basic Connected App Settings OAuth Policies - I'd recommend setting "Refresh token is valid until revoked" |
Thank you for the step-by-step! I created the connected app and I'm running into what seems to be a common issue: I think it has something to do with either the start or callback url? I tried your suggested URl as well as the suggested callback from Okta's documentation: https://system-admin.okta.com/admin/app/generic/oauth20redirect Any thoughts? Thank you, Steven! |
@nick-moreno-cffc In the past I have noticed that the callback url should start with |
@nick-moreno-cffc Let me know if you have further questions or if you've figured things out so I can note what worked. I'll close the issue in a few days if I don't hear back. Thanks! |
Hi @nick-moreno-cffc – Let me know if you resolved or are still having issues. Happy to think through a few other solutions, if needed. If not, then I'll close this since it's been open for a few months. At some point, I'll probably create a vignette with this info so it's more structured, so thanks for giving me the chance to put some thoughts on paper to hopefully help some other folks trying to do the same thing. |
I opened another ticket on same .. If I uninstall httpuv, it shows error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration |
I was running into the same
@nick-moreno-cffc it sounds like something similar could be happening with the Okta redirect. |
Having trouble configuring a connected app to utilize the OAuth login process, but I am having trouble breaking through.
The readme doesn't give too much explanation to how to log in via OAuth 2.0 - is it possible to have a more detailed walk through?
If not, running into the following issue:
Any guidance would be very appreciated! We've resorted to OOTB Salesforce tools for data uploads but our team can work in R much faster.
The text was updated successfully, but these errors were encountered: