# Revoke token with PKCE (logout)

**URL:** <https://devforum.okta.com/t/revoke-token-with-pkce-logout/5364>\
**Category:** Questions\
**Created:** [June 11, 2019, 1:07am UTC](https://devforum.okta.com/t/revoke-token-with-pkce-logout/5364 "2019-06-11T01:07:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [June 11, 2019, 11:12am UTC](https://devforum.okta.com/t/revoke-token-with-pkce-logout/5364/2 "2019-06-11T11:12:35Z")

</div>

Hi @Rudovsky

I’ve tested now on my end and I was able to revoke the access token successfully. Here is the cURL request used

```auto
  https://dragos.okta.com/oauth2/aus38el88lfcL6PFg2p7/v1/revoke \
  -H 'Accept: application/json' \
  -H 'Host: dragos.okta.com' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -d 'token=eyJraWQiOiJkbUhnMjRzNDdnWXZ6bE5JWTFmMFJxWVdrb2VQQ2R0WmdVdnRxdnNzeTRVIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULno4eWdXUml4eVJlMnBJSmJ1aTFLVVNUaFZqMmNhX252WWdKZWJWb21hZjQiLCJpc3MiOiJodHRwczovL2RyYWdvcy5va3RhLmNvbS9vYXV0aDIvYXVzMzhlbDg4bGZjTDZQRmcycDciLCJhdWQiOiJodHRwczovL2Rldi5va3RhLmFkbWlucGFuZWwuYml6IiwiaWF0IjoxNTYwMjUxMTk4LCJleHAiOjE1NjAyNTQ3OTgsImNpZCI6IjBvYTNwa3gzNWg2ZlJ5RzNLMnA3IiwidWlkIjoiMDB1b3piZ2MwM3d6cW9hWHAycDYiLCJzY3AiOlsib3BlbmlkIl0sInN1YiI6InRlc3QudXNlckBleGFtcGxlLmNvbSIsIm9yZyI6InRlc3QifQ.ql_JtRi3c0sHq3eIbiAa_CjavcHHEmzMxn8_yBtUVEyU8wHrVxSjmigH0KKHXX6LMb7QVvPVrVrSLCwV5gdD8fhpz_OXHC3_gqR0dYzBVH4Oj4T1F6z49c0tbMg95VccrHZuKCakhqwpTi8GM1ntn3GvBK2FXC_ofm79leHTSxmT4MlkbRolIaOPMlrFow5POiRP2ckyf03quCYAdbOhTgP6hVDnqxMGYOV8HSmOCupSFoOHCCePe00tH7k4yBODlLwjoneykpjWkGVur2iUWTTmQbORwh41i8lB11gWkUO0B6BQYV2PzMbw0YhBTUo_GKzsUkaMUzfaPe8FFowg6g&token_type_hint=access_token&client_id=0oa3pkx35h6fRyG3K2p7'

```

Here are a few things to check in order to narrow down the issue:

- the `cid` claim inside the access token matches the client\_id declared in the body
- the token is revoked on the same authorization server that was used to generate it (you can easily check this by comparing the URL that you are accessing against `iss` claim inside the access token)
- the OIDC application is active inside your Okta org

---

_[View the full topic](https://devforum.okta.com/t/revoke-token-with-pkce-logout/5364)._
