ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
OAuthToken.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
IMSGlobal\LTI\OAuth
;
4
12
class
OAuthToken
{
13
14
// access tokens and request tokens
15
public
$key
;
16
public
$secret
;
17
22
function
__construct
(
$key
,
$secret
) {
23
$this->key =
$key
;
24
$this->secret =
$secret
;
25
}
26
31
function
to_string
() {
32
return
'oauth_token='
.
33
OAuthUtil::urlencode_rfc3986
($this->key) .
34
'&oauth_token_secret='
.
35
OAuthUtil::urlencode_rfc3986
($this->secret);
36
}
37
38
function
__toString
() {
39
return
$this->
to_string
();
40
}
41
42
}
IMSGlobal\LTI\OAuth\OAuthToken\to_string
to_string()
generates the basic string serialization of a token that a server would respond to request_token and ...
Definition:
OAuthToken.php:31
IMSGlobal\LTI\OAuth
Definition:
OAuthConsumer.php:3
IMSGlobal\LTI\OAuth\OAuthToken\__construct
__construct($key, $secret)
key = the token secret = the token secret
Definition:
OAuthToken.php:22
IMSGlobal\LTI\OAuth\OAuthToken\__toString
__toString()
Definition:
OAuthToken.php:38
IMSGlobal\LTI\OAuth\OAuthToken\$key
$key
Definition:
OAuthToken.php:15
IMSGlobal\LTI\OAuth\OAuthUtil\urlencode_rfc3986
static urlencode_rfc3986($input)
Definition:
OAuthUtil.php:14
IMSGlobal\LTI\OAuth\OAuthToken
Class to represent an OAuth Token.
Definition:
OAuthToken.php:12
IMSGlobal\LTI\OAuth\OAuthToken\$secret
$secret
Definition:
OAuthToken.php:16
php
libs
composer
vendor
imsglobal
lti
src
OAuth
OAuthToken.php
Generated on Thu Feb 27 2025 19:01:19 for ILIAS by
1.8.13 (using
Doxyfile
)