Difference between revisions of "Authorization code"

From wikieduonline
Jump to navigation Jump to search
(Created page with " curl -s -X POST https://<OKTA_DOMAIN>/oauth2/v1/token \ -d "grant_type=authorization_code" \ -d "code=invalid-test" \ -d "client_id=<C...")
 
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
   
 
   
 
  [[invalid_grant]] is a valid response
 
  [[invalid_grant]] is a valid response
 +
 +
 +
  "error": "[[unauthorized_client]]",
 +
  "error_description": "The client is not authorized to use the provided grant type. Configured grant types: [authorization_code]."
  
  
  
 
== See also ==
 
== See also ==
 +
* {{grant_types}}
 
* {{client_id}}
 
* {{client_id}}
 
* {{redirect_uri}}
 
* {{redirect_uri}}
* {{OIDC}}
 
  
 
[[Category:OIDC]]
 
[[Category:OIDC]]

Latest revision as of 16:44, 18 July 2026

curl -s -X POST https://<OKTA_DOMAIN>/oauth2/v1/token \
       -d "grant_type=authorization_code" \
       -d "code=invalid-test" \
       -d "client_id=<CLIENT_ID>" \
       -d "client_secret=<CLIENT_SECRET>" \
       -d "redirect_uri=https://placeholder/callback" | jq

invalid_grant is a valid response


 "error": "unauthorized_client",
 "error_description": "The client is not authorized to use the provided grant type. Configured grant types: [authorization_code]."


See also[edit]

Advertising: