This question already has an answer here:
I am trying to access Salesforce resources , through another application using an integration user. There is no user intervention to click/approve/allow the authentication. All needs to happen through program. My ask is- Can I use Web Server authentication flow or User-Agent authentication flow? I want to avoid UserName-password flow.