auth::driver::get_parameter_values (public)

 auth::driver::get_parameter_values -authority_id authority_id \
    -impl_id impl_id

Defined in packages/acs-authentication/tcl/driver-procs.tcl

Gets a list of parameter values ready to be passed to a service contract implementation. If a parameter doesn't have a value, the value will be the empty string.

Switches:
-authority_id (required)
-impl_id (required)
Author:
Simon Carstensen <simon@collaboraid.biz>
Created:
2003-08-27

Testcases:
auth_driver_get_parameter_values
Source code:
    array set param [list]

    db_foreach select_values {
        select key, value
        from   auth_driver_params
        where  impl_id = :impl_id
        and    authority_id = :authority_id
    } {
        set param($key$value
    }

    # We need to ensure that the driver gets all the parameters it is asking for, and nothing but the ones it is asking for
    set params [list]
    foreach { name desc } [get_parameters -impl_id $impl_id] {
        if { [info exists param($name)] } {
            lappend params $name $param($name)
        } else {
            lappend params $name {}
        }
    }

    return $params
Generic XQL file:
packages/acs-authentication/tcl/driver-procs.xql

PostgreSQL XQL file:
packages/acs-authentication/tcl/driver-procs-postgresql.xql

Oracle XQL file:
packages/acs-authentication/tcl/driver-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: