# Scope issue when authorizing Oauth

**URL:** <https://devforum.okta.com/t/scope-issue-when-authorizing-oauth/20950>\
**Category:** OAuth/OIDC\
**Tags:** api, java\
**Created:** [June 13, 2022, 8:13am UTC](https://devforum.okta.com/t/scope-issue-when-authorizing-oauth/20950 "2022-06-13T08:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hari1692](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hari1692](https://devforum.okta.com/u/Hari1692)\
**Post date:** [June 13, 2022, 8:13am UTC](https://devforum.okta.com/t/scope-issue-when-authorizing-oauth/20950/1 "2022-06-13T08:13:43Z")

</div>

Request :

[https://dev-29677267.okta.com/oauth2/default/v1/authorize?response\_type=code&client\_id=0oa5b18407lQNYZqw5d7&scope=openid%20offline\_access%20okta.apps.read%20okta.apps.manage&redirect\_uri=https://hari-2138.csez.zohocorpin.com:7443/callback&state=striung](https://dev-29677267.okta.com/oauth2/default/v1/authorize?response_type=code&client_id=0oa5b18407lQNYZqw5d7&scope=openid%20offline_access%20okta.apps.read%20okta.apps.manage&redirect_uri=https://hari-2138.csez.zohocorpin.com:7443/callback&state=striung)

Response

[https://hari-2138.csez.zohocorpin.com:7443/callback?state=striung&error=invalid\_scope&error\_description=One+or+more+scopes+are+not+configured+for+the+authorization+server+resource](https://hari-2138.csez.zohocorpin.com:7443/callback?state=striung&error=invalid_scope&error_description=One+or+more+scopes+are+not+configured+for+the+authorization+server+resource).

How to add these scopes “okta.apps.read%20okta.apps.manage” in my app to get access\_token?  
In default authorization server i couldn’t find the above mentioned scopes? Can you help me with adding these?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [June 13, 2022, 3:20pm UTC](https://devforum.okta.com/t/scope-issue-when-authorizing-oauth/20950/2 "2022-06-13T15:20:34Z")

</div>

Okta API Scopes exist only on the [Org Authorization Server](https://developer.okta.com/docs/concepts/auth-servers/#org-authorization-server). Remove `/default` from your request path and retry.

See our docs for reference: [Implement OAuth for Okta | Okta Developer](https://developer.okta.com/docs/guides/implement-oauth-for-okta/main/)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [June 14, 2022, 3:21pm UTC](https://devforum.okta.com/t/scope-issue-when-authorizing-oauth/20950/3 "2022-06-14T15:21:16Z")

</div>

Closed on June 14, 2022, 3:21pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
