7.22 SET_AUTHENTICATION_SCHEME Procedure

This procedure sets the authentication scheme of an application. Specify the Static ID of the authentication scheme.

Note:

If APEX cannot find a matching authentication scheme by Static ID, it checks for matching authentication scheme by name. This is done for backward compatibility.

Syntax

APEX_APPLICATION_ADMIN.SET_AUTHENTICATION_SCHEME (
    p_application_id IN NUMBER,
    p_name           IN VARCHAR2 );

Parameters

Parameter Description
p_application_id The application ID.
p_name

The name of the authentication scheme to be activated.

The authentication scheme must exist in the application. If p_nameis null, the active authentication scheme remains unchanged.

Example

This example activates authentication scheme "SSO-Production" for application 100.

BEGIN
    apex_application_admin.set_authentication_scheme (
        p_application_id => 100,
        p_name           => 'SSO-Production' );
END;