diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 20:01:18 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 20:01:18 +0000 |
| commit | adaea63f60126d8b4c3c5395ca62f0c8125d8ddd (patch) | |
| tree | 00a4de94d5ab286c5bb037861df58d498f30246f /php | |
| parent | 921ffa05b3ebab2359f400b0a74f3dec884a4edb (diff) | |
| download | lasso-adaea63f60126d8b4c3c5395ca62f0c8125d8ddd.tar.gz lasso-adaea63f60126d8b4c3c5395ca62f0c8125d8ddd.tar.xz lasso-adaea63f60126d8b4c3c5395ca62f0c8125d8ddd.zip | |
Modified PHP bindings in an attempt to add new argument to method
lasso_build_authn_request_msg.
Diffstat (limited to 'php')
| -rw-r--r-- | php/Attic/examples/login.php | 2 | ||||
| -rw-r--r-- | php/Attic/examples/sample-sp/login.php | 2 | ||||
| -rw-r--r-- | php/Attic/examples/test.php | 2 | ||||
| -rw-r--r-- | php/environs/lasso_login.c | 13 |
4 files changed, 11 insertions, 8 deletions
diff --git a/php/Attic/examples/login.php b/php/Attic/examples/login.php index 31f8651b..d0b61933 100644 --- a/php/Attic/examples/login.php +++ b/php/Attic/examples/login.php @@ -34,7 +34,7 @@ lasso_lib_authn_request_set_relaystate($lib_authn_request, "fake"); lasso_lib_authn_request_set_protocolprofile($lib_authn_request, lassoLibProtocolProfileBrwsArt); - lasso_login_build_authn_request_msg($splogin); + lasso_login_build_authn_request_msg($splogin, lassoHttpMethodRedirect); print "msg_url : " . lasso_profile_get_msg_url($profile) . "\n"; print "msg_body : " . lasso_profile_get_msg_body($profile) . "\n"; diff --git a/php/Attic/examples/sample-sp/login.php b/php/Attic/examples/sample-sp/login.php index b1594fae..a29329f4 100644 --- a/php/Attic/examples/sample-sp/login.php +++ b/php/Attic/examples/sample-sp/login.php @@ -47,7 +47,7 @@ lasso_lib_authn_request_set_nameidpolicy($lib_authn_request, lassoLibNameIDPolicyTypeFederated); lasso_lib_authn_request_set_consent($lib_authn_request, lassoLibConsentObtained); - lasso_login_build_authn_request_msg($login, "https://idp1/metadata"); + lasso_login_build_authn_request_msg($login, "https://idp1/metadata", lassoHttpMethodRedirect); $url = lasso_profile_get_msg_url($profile); diff --git a/php/Attic/examples/test.php b/php/Attic/examples/test.php index 487ee58c..c7f3c516 100644 --- a/php/Attic/examples/test.php +++ b/php/Attic/examples/test.php @@ -72,7 +72,7 @@ lasso_lib_authn_request_set_relaystate($lib_authn_request, "fake"); lasso_lib_authn_request_set_protocolprofile($lib_authn_request, lassoLibProtocolProfileBrwsArt); - lasso_login_build_authn_request_msg($spsession); + lasso_login_build_authn_request_msg($spsession, lassoHttpMethodRedirect); $ret = lasso_login_init_authn_request($spsession, "https://identity-provider:1998/liberty-alliance/metadata"); if (!$ret) { diff --git a/php/environs/lasso_login.c b/php/environs/lasso_login.c index 6e154507..88097ebf 100644 --- a/php/environs/lasso_login.c +++ b/php/environs/lasso_login.c @@ -167,29 +167,32 @@ PHP_FUNCTION(lasso_login_build_request_msg) { } /* }}} */ -/* {{{ proto lasso_login_build_authn_request_msg(resource login, string remote_providerID) */ +/* {{{ proto lasso_login_build_authn_request_msg(resource login, string remote_providerID, + * long http_method) */ PHP_FUNCTION(lasso_login_build_authn_request_msg) { LassoLogin *login; char *remote_providerID; int remote_providerID_len; + long http_method; zval *parm; int num_args; int ret; - if ((num_args = ZEND_NUM_ARGS()) != 2) + if ((num_args = ZEND_NUM_ARGS()) != 3) WRONG_PARAM_COUNT - if (zend_parse_parameters(num_args TSRMLS_CC, "zs", &parm, - &remote_providerID, &remote_providerID_len) == FAILURE) { + if (zend_parse_parameters(num_args TSRMLS_CC, "zsl", &parm, + &remote_providerID, &remote_providerID_len, + &http_method) == FAILURE) { return; } ZEND_FETCH_RESOURCE(login, LassoLogin *, &parm, -1, le_lassologin_name, le_lassologin); - lasso_login_build_authn_request_msg(login, remote_providerID); + lasso_login_build_authn_request_msg(login, remote_providerID, http_method); } /* }}} */ |
