title: How to get access token using Karate oauth 2.0 Authorization implicit grant type
body: <p>I tried to automate using karate framework following steps which I did in postman.
  How I tried in Postman:</p>
  <ol>
  <li>On Authorization tab select OAuth 2.0</li>
  <li>Select Header Prefix Bearer</li>
  <li>Grant-Type is &quot;Implicit&quot;</li>
  <li>I put Callback URL</li>
  <li>I put Auth URL</li>
  <li>I put Client ID</li>
  <li>Select &quot;Client Authentication&quot; as Send as Basic Auth Header.</li>
  </ol>
  <p>I used following code in order to get Access token
  Background:</p>
  <pre><code> * url 'Auth URL'
  
    Scenario: Verify the user details using OAuth2 Implicit grant type
  
      * form field callbackurl = 'callbackurl'
      * form field grant_type = 'implicit'
      * form field client_id = 'client id'
      * form field username = 'username'
      * form field password = 'password'
      * method post
      * status 200
      * print response
  
      * def accessToken = response.access_token
  
      * path 'resource'
      * header Authorization = 'Bearer ' + accessToken
  # * param access_token = accessToken
      * method post
      * status 200
  </code></pre>
  <p>In output I got
  // UserpoolId is not available on frontend for springboard. We do not use userPoolId
  // anyway other than put in context data.
  var userPoolId = &quot;&quot;;
  var clientId = getUrlParameter(&quot;client_id&quot;);</p>
  <p>I do not know where I am wrong. Please provide your help. Thanks!</p>