invalidate-token.asciidoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --
  2. :api: invalidate-token
  3. :request: InvalidateTokenRequest
  4. :response: InvalidateTokenResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Invalidate Token API
  8. [id="{upid}-{api}-request"]
  9. ==== Invalidate Token Request
  10. The +{request}+ supports invalidating either an _access token_ or a _refresh token_
  11. ===== Access Token
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[invalidate-access-token-request]
  15. --------------------------------------------------
  16. ===== Refresh Token
  17. ["source","java",subs="attributes,callouts,macros"]
  18. --------------------------------------------------
  19. include-tagged::{doc-tests-file}[invalidate-refresh-token-request]
  20. --------------------------------------------------
  21. include::../execution.asciidoc[]
  22. [id="{upid}-{api}-response"]
  23. ==== Invalidate Token Response
  24. The returned +{response}+ contains a single property:
  25. `created`:: Whether the invalidation record was newly created (`true`),
  26. or if the token had already been invalidated (`false`).
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[{api}-response]
  30. --------------------------------------------------