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

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_driver_get_parameter_values auth_driver_get_parameter_values (test acs-authentication) auth::driver::get_parameter_values auth::driver::get_parameter_values test_auth_driver_get_parameter_values->auth::driver::get_parameter_values auth::driver::get_parameters auth::driver::get_parameters (public) auth::driver::get_parameter_values->auth::driver::get_parameters db_foreach db_foreach (public) auth::driver::get_parameter_values->db_foreach auth::authentication::authenticate auth::authentication::authenticate (public) auth::authentication::authenticate->auth::driver::get_parameter_values auth::password::CanChangePassword auth::password::CanChangePassword (private) auth::password::CanChangePassword->auth::driver::get_parameter_values auth::password::CanResetPassword auth::password::CanResetPassword (private) auth::password::CanResetPassword->auth::driver::get_parameter_values auth::password::CanRetrievePassword auth::password::CanRetrievePassword (private) auth::password::CanRetrievePassword->auth::driver::get_parameter_values auth::password::ChangePassword auth::password::ChangePassword (private) auth::password::ChangePassword->auth::driver::get_parameter_values

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: