summaryrefslogtreecommitdiffstats
path: root/modules/oauth/lib
diff options
context:
space:
mode:
authorJaime Perez Crespo <jaime.perez@uninett.no>2015-04-21 11:31:03 +0200
committerJaime Perez Crespo <jaime.perez@uninett.no>2015-04-21 11:31:03 +0200
commit1e079f45adf97fee458965183f1d4b6845970079 (patch)
treebe3c024a5daf81061c2767fad2380046057b3441 /modules/oauth/lib
parentfaf91600a945de38c52e32a4b4f8871c7814b6cf (diff)
downloadsimplesamlphp-1e079f45adf97fee458965183f1d4b6845970079.zip
simplesamlphp-1e079f45adf97fee458965183f1d4b6845970079.tar.gz
simplesamlphp-1e079f45adf97fee458965183f1d4b6845970079.tar.bz2
Move SimpleSAML_Utilities::addURLparameter() to SimpleSAML\Utils\HTTP::addURLParameters() and deprecate the former.
Diffstat (limited to 'modules/oauth/lib')
-rw-r--r--modules/oauth/lib/Consumer.php2
-rw-r--r--modules/oauth/lib/OAuthStore.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/oauth/lib/Consumer.php b/modules/oauth/lib/Consumer.php
index 8e3e5ae..265b1ca 100644
--- a/modules/oauth/lib/Consumer.php
+++ b/modules/oauth/lib/Consumer.php
@@ -91,7 +91,7 @@ class sspmod_oauth_Consumer {
if ($callback) {
$params['oauth_callback'] = $callback;
}
- $authorizeURL = SimpleSAML_Utilities::addURLparameter($url, $params);
+ $authorizeURL = \SimpleSAML\Utils\HTTP::addURLParameters($url, $params);
if ($redirect) {
SimpleSAML_Utilities::redirectTrustedURL($authorizeURL);
exit;
diff --git a/modules/oauth/lib/OAuthStore.php b/modules/oauth/lib/OAuthStore.php
index 6a239a6..974387a 100644
--- a/modules/oauth/lib/OAuthStore.php
+++ b/modules/oauth/lib/OAuthStore.php
@@ -63,7 +63,7 @@ class sspmod_oauth_OAuthStore extends OAuthDataStore {
if ($oConsumer && ($oConsumer->callback_url)) $url = $oConsumer->callback_url;
$verifier = SimpleSAML\Utils\Random::generateID();
- $url = SimpleSAML_Utilities::addURLparameter($url, array("oauth_verifier"=>$verifier));
+ $url = \SimpleSAML\Utils\HTTP::addURLParameters($url, array("oauth_verifier"=>$verifier));
$this->store->set('authorized', $requestTokenKey, $verifier, $data, $this->config->getValue('requestTokenDuration', 60*30) );