My Oracle Support Banner

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 OCTOBER 09, 2019

Applies to:

Oracle Access Manager - Version and later
Information in this document applies to any platform.


A custom authentication plugin is being configured with Oracle Access Manager (OAM) 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* 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: <>] [ecid: ] [SRC_CLASS:] [APP:  [SRC_METHOD: buildFelixQuery] RETURN (PLUGIN_NAME=<SamplePlugin1>)
[oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <>] [ecid: ] [SRC_CLASS:] [APP: ] [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.




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.