title: OKTA Invalid Scope issue s
body: <p>I am trying to use  OKTa for APP to APP authentication inside a SpringBoot Application and I get the below Scope issues ,</p>
  <pre><code>org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad 
  Request: [{&quot;error&quot;:&quot;invalid_scope&quot;,&quot;error_description&quot;:&quot;One or more scopes 
  are not configured for the authorization server resource.&quot;}]
  </code></pre>
  <p>we have default custome_scope mentioned at the Okta sever and when I try using the below code I am getting error while accesing line no 5 :  in the below code snippet ,</p>
  <pre><code>String tokenUri = issuerUri + &quot;/v2/token&quot; + &quot;? grant_type=client_credentials&amp;response_type=token&amp;scope=read&quot;;
  RestTemplate rt = new RestTemplate();
  headers = setHeaders(clientId, clientSecret, headers);
  HttpEntity requestEntity = new HttpEntity(headers);
  TokenData response = rt.postForObject(tokenUri, requestEntity, TokenData.class);
  </code></pre>
  <p>Can anyone help me</p>