13.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 13-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;
Parent topic: APEX_CREDENTIAL