Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not getting authenticated using custom authentication plugin in OAM11g

Purva Kulkarni-KaleSep 28 2011 — edited Aug 26 2013
Hello,

I have created a custom authentication plugin and imported, distributed and activated successfully in OAM11g (11.1.1.5)
However, when I try to test the same using oam tester, clicking on "authenticate" giving the result as "Not Authenticated"

my class name is -CustomUserAuthenticationPlugin

I have set the orchestration as step1 - useridentification and upon its success step 2 - CustomUserAuthenticationPluginstep(which will use my plugin for authentication)

I have traced the logs and found below Trace statements

Its giving the exception in logs as "class not found"





[2011-09-28T17:44:56.512+05:30] [oam_server1] [TRACE] [] [oracle.oam.engine.authn] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.D
efault (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.a
m.engine.authn.internal.executor.PlugInExecutor] [APP: oam_server] [SRC_METHOD: execute] Plugin to Execute :CustomUserAuthenticationPlugin
[2011-09-28T17:44:56.512+05:30] [oam_server1] [TRACE:16] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Defa
ult (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.p
lugin.internal.AMPluginLocator] [APP: oam_server] [SRC_METHOD: getAuthenticationPlugin] ENTRY CustomUserAuthenticationPlugin
[2011-09-28T17:44:56.512+05:30] [oam_server1] [TRACE:16] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Defa
ult (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.p
lugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: getPlugin] ENTRY CustomUserAuthenticationPlugin
[2011-09-28T17:44:56.513+05:30] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default
(self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.plug
in.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: getPlugin] Plugin config: oracle.security.am.plugin.internal.RuntimePluginConfig@
1360d330
[2011-09-28T17:44:56.513+05:30] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.plugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: getPlugin] Plugin Name: CustomUserAuthenticationPlugin, Class name: CustomUserAuthenticationPlugin
[2011-09-28T17:44:56.513+05:30] [oam_server1] [TRACE:16] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.plugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: loadSystemPlugin] ENTRY CustomUserAuthenticationPlugin
[2011-09-28T17:44:56.514+05:30] [oam_server1] [TRACE] [] [oracle.oam.plugin] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.plugin.internal.GenericPluginFactory] [APP: oam_server] [SRC_METHOD: loadSystemPlugin] Class not found exception


.......



[2011-09-28T17:44:56.523+05:30] [oam_server1] [TRACE] [] [oracle.oam.engine.authn] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [SRC_CLASS: oracle.security.am.engine.authn.internal.executor.PlugInExecutor] [APP: oam_server] [SRC_METHOD: execute] Plugin to Execute :null
[2011-09-28T17:44:56.523+05:30] [oam_server1] [NOTIFICATION] [OAMSSA-12130] [oracle.oam.engine.authn] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: c102f946207ea1a2:-4ec71b3d:132afeeafd7:-8000-000000000000001a,0] [APP: oam_server] Result of Authentication Scheme Execution: false.



to import the plugin I have created a jar file using Eclipse which contains -
MANIFEST.MF
CustomUserAuthenticationPlugin.class
CustomUserAuthenticationPlugin.xml (which is metadata about the plugin)



Manifest.mf--

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: <ABC>
Bundle-ManifestVersion: 2
Bundle-Name: CustomUserAuthenticationPlugin
Bundle-SymbolicName: CustomUserAuthenticationPlugin
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: CustomUserAuthenticationPlugin
Import-Package: org.osgi.framework;version="1.3.0",oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.api,oracle.security.am.common.utilities.principal,oracle.security.idm,javax.naming,javax.sql,javax.management,javax.security.auth
Bundle-RequiredExecutionEnvironment: JavaSE-1.6


and my metadata xml is -

<Plugin name="CustomUserAuthenticationPlugin" type="Authentication">
<author>cn=weblogic</author>
<email>purva@abc.com</email>
<creationDate>16:10:45,2011-09-28</creationDate>
<version>11</version>
<description>Custom Authentication Plugin</description>
<interface>oracle.security.am.plugin.authn.AbstractAuthenticationPlugIn</interface>
<implementation>CustomUserAuthenticationPlugin</implementation>
<configuration>
<AttributeValuePair>
<Attribute type="string" length="20">KEY_IDENTITY_STORE_REF</Attribute>
<mandatory>true</mandatory>
<instanceOverride>false</instanceOverride>
<globalUIOverride>true</globalUIOverride>
<value>my idstore name</value>
</AttributeValuePair>
</configuration>
</Plugin>

I am stuck at this step and not able to do further development


Please help

Thanks,
Purva Kale
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2013
Added on Sep 28 2011
10 comments
527 views