15.12 SET_SESSION_CREDENTIALS Procedure Signature 3

This procedure sets provided credential attributes for the current Oracle APEX session.

Syntax

APEX_CREDENTIAL.SET_SESSION_CREDENTIALS (
    p_credential_static_id IN VARCHAR2,
    p_key                  IN VARCHAR2,
    p_value                IN VARCHAR2 );

Parameters

Parameter Description
p_credential_static_id The credential static ID.
p_key Credential key (name of the HTTP Header or Query String Parameter).
p_value Credential secret value.

Example

The following example set attributes into credential my_API_key for the current APEX session persistently.

BEGIN
apex_credential.set_session_credentials (
    p_credential_static_id => 'my_API_key',
    p_key                  => 'api_key',
    p_value                => 'lsjkgjw4908902ru9fj879q367891hdaw' );
END;