OAM 11g Login With Custom Authentication Plug-In Returns "Authentication Failed": Trace Log Has Message "Number of service references: null" (Doc ID 1418789.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Access Manager - Version: 11.1.1.5.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms


A custom authentication plugin is being configured with Oracle Access Manager (OAM) 11.1.1.5 Server, with reference to the documentation below:

Oracle Fusion Middleware Developer's Guide for Oracle Access Manager and Oracle Security Token Service 11g Release 1 (11.1.1)
3 Creating Custom Authentication Plug-ins

After successful Upload/Distribute/Activate of the custom plugin jar file, attempts to test OAM authentication using the custom plugin fail.

The OAM diagnostic log file with TRACE logging enabled oracle.security.am.plugin.* for shows the entries similar to the following, with message ""Number of service references: null".

[] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: e86cf1f59e845b35:14fec2c0:1358ac8ba1b:-8000-0000000000000827,0] [SRC_CLASS: oracle.security.am.plugin.felix.FelixPluginProviderImpl] [APP: oam_server] [SRC_METHOD: buildFelixQuery] RETURN (PLUGIN_NAME=SamplePlugin1)
[oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: e86cf1f59e845b35:14fec2c0:1358ac8ba1b:-8000-0000000000000827,0] [SRC_CLASS: oracle.security.am.plugin.felix.FelixPluginProviderImpl] [APP: oam_server] [SRC_METHOD: getServiceReference] Number of service references: null


Steps to reproduce

1. Create a custom authentication plugin following the guidelines in the OAM 11gR1 Developers Guide and package the plugin as an OSGI Bundle jar file.
2. In OAM Console, complete the process to Upload/Distribute/Activate the custom authentication plugin. Complete these actions without errors.
3. Configure an authentication module and an authentication scheme to reference the custom plugin.
4. Configure a resource in an OAM Application Domain to use the custom plugin authentication scheme.
5. Access the resource in a browser and submit credentials in the OAM SSO login page:  Error: Authentication Failed. The TRACE OAM diagnostic log shows debug message "Number of service references: null" when loading the custom plugin.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms