title: oAuth 2.0 - Acting on behalf of the user
body: <p>I'm new to oAUth2 and I'm trying to get a few things straight. </p>
  
  <p>I understand the basic principles involved with oAuth2 but I am not sure how to implement it in my situation.</p>
  
  <p>I am writing an app that acts on behalf of the user to automate a manual process and perform some tasks(update/request status...etc). The API we are connecting to uses oAuth2 to grant our application permission. We plan on having the user grant our application permission when they create a new account with us. </p>
  
  <p>I understand that the user will request an authentication code that is provided to our application. Then our application will use the authentication code to generate an access token. </p>
  
  <p>We would like to do this only once. Then act as the user to send and receive notifications without having to have the user to log into the service with their credentials. </p>
  
  <p>I am not sure how to implement this without having to store the user credentials to get an auth code since the auth code and auth tokens expire. I'm guessing that this is a common scenario. </p>
  
  <p>What would I need to do to get what I want accomplished? </p>