16.11 SET_SCOPE Procedure

This procedure changes the "scope" attribute of a Web Credential. All existing tokens for the given credential are cleared.

Syntax

APEX_CREDENTIAL.SET_SCOPE (
     p_credential_static_id      IN VARCHAR2,
     p_scope                     IN VARCHAR2 );

Parameters

Parameter Description
p_credential_static_id Credential static ID.
p_scope New scope value to store within the Web Credential.

Example

The following example sets allowed URLs for the credential "OAuth_Login."

BEGIN
    apex_credential.set_scope (
        p_credential_static_id => 'OAuth_Login',
        p_scope                => 'new-scope-value' );
END;