📌  相关文章
📜  ' invalid_scope '此请求不允许自定义范围. okta - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.130000             🧑  作者: Mango

代码示例1
# define allowed scoped ( https://developer.okta.com/docs/guides/implement-oauth-for-okta/define-allowed-scopes/)
    # to list the avilable scopes use:
    curl -X POST \
    -H 'Accept: application/json' \
    -H "Authorization: SSWS ${api_token}" \
    -H 'Content-Type: application/json' \
    -d '{
          "scopeId": "okta.users.read",
          "issuer": "https://{yourOktaDomain}"
    }' "https://${yourOktaDomain}/api/v1/apps/client_id/grants"