Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Namespaces | Functions
OAuthBody.php File Reference

Namespaces

 moodle\mod\lti
  
 

Functions

 moodle\mod\lti::get_oauth_key_from_headers ($typeid=null, $scopes=null)
 
 moodle\mod\lti::handle_oauth_body_post ($oauthconsumerkey, $oauthconsumersecret, $body, $requestheaders=null)
 

Detailed Description

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.