java.lang.Object
com.ringcentral.paths.restapi.oauth.revoke.Index

public class Index extends Object
  • Field Details

  • Constructor Details

    • Index

      public Index(Index parent)
  • Method Details

    • path

      public String path()
    • path

      public String path(Boolean withParameter)
    • post

      public String post(RevokeTokenRequest revokeTokenRequest, RevokeTokenParameters queryParams) throws RestException, IOException
      Revokes all active access/refresh tokens and invalidates the OAuth session basing on token provided. The `token` parameter may be passed in query string or body and may represent access or refresh token.

      This endpoint is defined by [RFC-7009 "OAuth 2.0 Token Revocation"](https://datatracker.ietf.org/doc/html/rfc7009)

      For confidential client application types this endpoint requires client authentication using one of the supported methods: - `client_secret_basic` - client ID and client secret must be provided via `Authorization` header as described in [RFC-6749](https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1). - `client_secret_jwt` / `private_key_jwt` -- `client_assertion` attribute should be used to pass a signed JWT as described in [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2).

      For non-confidential client application types the client identifier must be provided via `client_id` request attribute.

      HTTP Method: post Endpoint: /restapi/oauth/revoke Rate Limit Group: Auth

      Throws:
      RestException
      IOException
    • post

      public String post(RevokeTokenRequest revokeTokenRequest) throws RestException, IOException
      Throws:
      RestException
      IOException