auth::authentication::authenticate (public)

 auth::authentication::authenticate -authority_id authority_id \
    -username username -password password

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

Invoke the Authenticate service contract operation for the given authority.

Switches:
-authority_id (required)
The ID of the authority to ask to verify the user.
-username (required)
Username of the user.
-password (required)
The password as the user entered it.

Partial Call Graph (max 5 caller/called nodes):
%3 test_auth_password_reset auth_password_reset (test acs-authentication) auth::authentication::authenticate auth::authentication::authenticate test_auth_password_reset->auth::authentication::authenticate acs_sc::invoke acs_sc::invoke (public) auth::authentication::authenticate->acs_sc::invoke auth::authority::get_element auth::authority::get_element (public) auth::authentication::authenticate->auth::authority::get_element auth::driver::get_parameter_values auth::driver::get_parameter_values (public) auth::authentication::authenticate->auth::driver::get_parameter_values auth::authenticate auth::authenticate (public) auth::authenticate->auth::authentication::authenticate

Testcases:
auth_password_reset
Source code:
    set impl_id [auth::authority::get_element -authority_id $authority_id -element "auth_impl_id"]

    if { $impl_id eq "" } {
        # No implementation of authentication
        set authority_pretty_name [auth::authority::get_element -authority_id $authority_id -element "pretty_name"]
        error "The authority '$authority_pretty_name' doesn't support authentication"
    }

    set parameters [auth::driver::get_parameter_values  -authority_id $authority_id  -impl_id $impl_id]

    return [acs_sc::invoke  -error  -impl_id $impl_id  -operation Authenticate  -call_args [list $username $password $parameters $authority_id]]
Generic XQL file:
packages/acs-authentication/tcl/authentication-procs.xql

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

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

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