function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KJesseKJesse 

Which OAuth Flow is right for me?

I was using authorization code method but I realized I did not want the user to login. In fact I do not want the user to be redirected. I am trying to sync data between a web server and salesforce and it can be done with a single username. This lead me to implement the username flow but I am getting redirected to login dispite having the credientials in the oauth curl request. Am I doing something wrong in the username/password flow or should I implement a JWT Bearer Token Flow so the data transactions behind the scenes are even less visible to the user. Refreshing would be optimal because I would not like the user to have to login again.

Thanks,
Kevin
Best Answer chosen by KJesse
KJesseKJesse
Figured out that JWT Bearer Token Flow worked perfectly