Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
moodle\mod\lti Namespace Reference

This file contains the OAuth 1.0a implementation used for support for LTI 1.1. More...

Classes

class  OAuthConsumer
 OAuth 1.0 Consumer class. More...
 
class  OAuthDataStore
 
class  OAuthException
 Generic exception class. More...
 
class  OAuthRequest
 
class  OAuthServer
 
class  OAuthSignatureMethod
 
class  OAuthSignatureMethod_HMAC
 Base class for the HMac based signature methods. More...
 
class  OAuthSignatureMethod_HMAC_SHA1
 Implementation for SHA 1. More...
 
class  OAuthSignatureMethod_HMAC_SHA256
 Implementation for SHA 256. More...
 
class  OAuthSignatureMethod_PLAINTEXT
 
class  OAuthSignatureMethod_RSA_SHA1
 
class  OAuthToken
 
class  OAuthUtil
 
class  TrivialOAuthDataStore
 A Trivial memory-based store - no support for tokens. More...
 

Functions

 get_oauth_key_from_headers ($typeid=null, $scopes=null)
 
 handle_oauth_body_post ($oauthconsumerkey, $oauthconsumersecret, $body, $requestheaders=null)
 

Variables

 $lastcomputedsignature = false
 

Detailed Description

This file contains the OAuth 1.0a implementation used for support for LTI 1.1.

This file contains a Trivial memory-based store - no support for tokens.

 

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Author
Charles Severance csev@.nosp@m.umic.nosp@m.h.edu
License
http://www.apache.org/licenses/LICENSE-2.0

Function Documentation

◆ get_oauth_key_from_headers()

moodle\mod\lti\get_oauth_key_from_headers ( $typeid = null,
$scopes = null )
Parameters
int$typeidLTI type ID.
string[]$scopesArray of scopes which give permission for the current request.
Return values
string|int|booleanThe OAuth consumer key, the LTI type ID for the validated bearer token, true for requests not requiring a scope, otherwise false.