8.1 CLEAR_TOKENS Procedure

This procedure clears all acquired tokens for a given credential. Applies only to OAuth2 based flows, where the Client ID and Client Secret are used to obtain an Access Token with a certain expiry time. This call clears the obtained tokens.

Syntax

procedure clear_tokens( p_credential_static_id in varchar2);

Parameters

Table 8-1 CLEAR_TOKENS Procedure Parameters

Parameters Description

p_credential_static_id

The credential static ID.

Example

The following example clears all obtained tokens for the credential OAuth Login.

begin
    apex_credential.clear_tokens(
    p_credential_static_id => 'OAuth Login' );
end;