How To Set Multiple Value Items For A Single Authentication Plug-In Parameter (Doc ID 1308551.1)

Last updated on JUNE 08, 2017

Applies to:

COREid Access - Version 10.1.4.3.0 and later
Information in this document applies to any platform.

Goal

This is a question related to OAM 10g Authentication C-API plugin.

From OAM Custom authentication plugin documentation and sample code, we know that it is possible to associate one parameter with a multi-valued list. (please see http://download.oracle.com/docs/cd/E15217_01/doc.1014/e12491/authnapi.htm#BABEBEED).

I was not able to enter the multi-value in the authentication scheme plugins with the correct format so that the multi-value can be parsed in the custom plugin with the sample code:

list = pFnBlock->GetDataFn(pInfo->Params,"myparam");
if (list != NULL){
item = pFnBlock->GetFirstItemFn(list);
if (item != NULL){
param1 = pFnBlock->GetValueFn(item);
item = pFnBlock->GetNextFn(item);
if (item != NULL){
param2 = pFnBlock->GetValueFn(item);
item = pFnBlock->GetNextFn(item);
if (item != NULL){
param3 = pFnBlock->GetValueFn(item);
}

What is the correct format to passing the multi-value for a single plug-in parameter?

Plugins for Authentication Scheme
Plugin Name IpUrlFilter
Plugin Parameters ipf="151.108.210.84":"151.108.310.24":151.108.610.182"

The C-API can only capture the first value: "151.108.210.84". We want to be able to see all 3 ip addresses specified as a multi_value list.

Solution

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