Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Namespaces | Functions
OAuthBody.php File Reference

Namespaces

namespace  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.