mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-42666 oauthlib: Getter methods for accesstoken, client id and secret
This commit is contained in:
parent
b2f9028559
commit
79d89136f0
@ -617,6 +617,39 @@ abstract class oauth2_client extends curl {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get access token.
|
||||
*
|
||||
* This is just a getter to read the private property.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_accesstoken() {
|
||||
return $this->accesstoken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client ID.
|
||||
*
|
||||
* This is just a getter to read the private property.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_clientid() {
|
||||
return $this->clientid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the client secret.
|
||||
*
|
||||
* This is just a getter to read the private property.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_clientsecret() {
|
||||
return $this->clientsecret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should HTTP GET be used instead of POST?
|
||||
* Some APIs do not support POST and want oauth to use
|
||||
|
Loading…
x
Reference in New Issue
Block a user