title: Request token with postman
body: <p>I'm trying to configure Postman to " Get New Access Token" function in order to retrieve a token before calling a resource. I'm using FOSOAuthServerBundle</p>
  
  <p>this is my security.yml</p>
  
  <pre><code># To get started with security, check out the documentation:
  # http://symfony.com/doc/current/security.html
  security:
      encoders:
          FOS\UserBundle\Model\UserInterface: sha512
  
      providers:
          fos_userbundle:
              id: fos_user.user_provider.username        
      firewalls:
  
          oauth_token:                                   # Everyone can access the access token URL.
              pattern: ^/oauth/v2/token
              security: false
  
          api:
              pattern: ^/                                # All URLs are protected
              fos_oauth: true                            # OAuth2 protected resource
              stateless: true                            # Do no set session cookies
              anonymous: false                           # Anonymous access is not allowed
  </code></pre>
  
  <p>In the window where i put the authentication information I saw this line </p>
  
  <blockquote>
    <p>Callback URL
    <a href="https://www.getpostman.com/oauth2/callback" rel="nofollow noreferrer">https://www.getpostman.com/oauth2/callback</a>
    Set this as the callback URL in your app settings page.</p>
  </blockquote>
  
  <p>theese are the authentication informations:</p>
  
  <pre><code>Auth URL: https://{{url}}/api/web/app_dev.php/oauth/v2/auth
  Access Token URL: https://{{url}}/api/web/app_dev.php/oauth/v2/token
  Client ID: {{client_id}}
  Client Secret: {{client_secret}}
  Grant Type: Client Credentials
  </code></pre>
  
  <p>where {{url}}, {{client_id}} and {{client_secret}} are Postman's environment variables.</p>
  
  <p><a href="https://i.stack.imgur.com/sN6fG.png" rel="nofollow noreferrer">New Access Token page example</a></p>
  
  <p>Where I'm wrong?</p>
  
  <p>Thanks.</p>