LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
OAuth/OAuthDataStore.php
1<?php
2
3namespace ceLTIc\LTI\OAuth;
4
13{
14
22 function lookup_consumer($consumer_key)
23 {
24 // implement me
25 }
26
36 function lookup_token($consumer, $token_type, $token)
37 {
38 // implement me
39 }
40
51 function lookup_nonce($consumer, $token, $nonce, $timestamp)
52 {
53 // implement me
54 }
55
64 function new_request_token($consumer, $callback = null)
65 {
66 // return a new token attached to this consumer
67 }
68
78 function new_access_token($token, $consumer, $verifier = null)
79 {
80 // return a new access token attached to this consumer
81 // for the user associated with this token if the request token
82 // is authorized
83 // should also invalidate the request token
84 }
85
86}
Class to represent an OAuth Data Store.
lookup_consumer($consumer_key)
Find consumer based on key.
lookup_nonce($consumer, $token, $nonce, $timestamp)
Check nonce value.
new_access_token($token, $consumer, $verifier=null)
Get new access token.
lookup_token($consumer, $token_type, $token)
Find token.
new_request_token($consumer, $callback=null)
Get new request token.