title: Get new access token with Authorization Code OAuth2 - Using Robot framework
body: <p>I have some troubles with getting Access token with grant type authorization code using Robot framework with Oauth2.
  We use also a username/password authentication and after give the following parameters we get back our access token:
  Grant Type, Callback URL, Auth URL, Access Token URL, Client ID, Client Secret, Scope, State.</p>
  
  <p>I tried with RequestsLibrary and ExtendedRequestsLibrary as well, but no success so far.
  Actually I do not know how to add parameters: callback url, auth url, access token url and state.</p>
  
  <pre><code>First try - using RequestsLibrary 
  
  Get admin token
  &amp;{HEADER_TOKEN}=    Create Dictionary   Content-Type=${CONTENT_TYPE} 
   &amp;{DATA_TOKEN}=    Create Dictionary     token_name=backend_token    grant_type=${GRANT_TYPE}   redirect_uri =${CALLBACK_URL}   auth_url=${AUTH_URL}   access_token_url=${ACCESS_TOKEN_URL}    client_id=${CLIENT_ID}    client_secret=${CLIENT_SECRET}    scope=${SCOPE}    state=${STATE}   username=${USERNAME}    ${PASSWORD}
   ${BACKEND_RESPONSE}=   RequestsLibrary.Post Request    ${BACKEND_SESSION}    /oauth/token      data=${DATA_TOKEN}     headers=${HEADER_TOKEN} 
   Log to console    ${BACKEND_RESPONSE}
   Should Be Equal As Strings  ${BACKEND_RESPONSE.status_code}  200
  
  </code></pre>
  
  <pre><code>Second try - using ExtendedRequestsLibrary 
  
  Get brand new admin token
      ${SESSION_RESPONSE}=    Create Password Oauth2 Session    client    ${TOKEN_URL}    ${CLIENT_ID}    ${CLIENT_SECRET}    ${USERNAME}    ${PASSWORD}    base_url=${BASE_URL}
  
      &amp;{HEADER_TOKEN}=    Create Dictionary   Content-Type=${CONTENT_TYPE} 
      &amp;{DATA_TOKEN}=    Create Dictionary     token_name=client   grant_type=${GRANT_TYPE}   callback_url=${CALLBACK_URL}   auth_url=${AUTH_URL}   access_token_url=${ACCESS_TOKEN_URL}    client_id=${CLIENT_ID}    client_secret=${CLIENT_SECRET}    scope=${SCOPE}    state=${STATE}
      ${BACKEND_RESPONSE}=   ExtendedRequestsLibrary.Post Request   client    /oauth/token      data=${DATA_TOKEN}     headers=${HEADER_TOKEN} 
      Log to console    ${BACKEND_RESPONSE}
      Should Be Equal As Strings  ${BACKEND_RESPONSE.status_code}  200
      Log to console    ${BACKEND_RESPONSE.status_code}
  </code></pre>
  
  <p>If you have any idea just let me know.</p>
  
  <p>thx!</p>