Hi Kenneth,
Finally we got ID and KEY from canvas. I edited that in config.php. also, I added recommended lines of code in oauth2response.php.
added to oauth2response.php in line #25 as advised
=============================
var_dump($_GET);
echo '<hr>';
var_dump($userToken);
exit;
I do get "login" window but when I click on "Login" button, it breaks with following errors:
Strict Standards: Declaration of
TrivialOAuthDataStore::new_request_token() should be compatible with
OAuthDataStore::new_request_token($consumer, $callback = NULL) in/home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/resources/TrivialOAuthDataStore.php on
line 45
Strict Standards: Declaration of
TrivialOAuthDataStore::new_access_token() should be compatible with
OAuthDataStore::new_access_token($token, $consumer, $verifier = NULL) in/home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/resources/TrivialOAuthDataStore.php on
line 45
Notice: Undefined index: canvasURL in /home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/oauth2response.phpon
line 12
Warning:
file_get_contents(/login/oauth2/token?client_id=25330000000000002&client_secret=secret&code=4384502fbd18b394ecc32c0afa61245fe6e6c57d22fc7c4d09e32a94f3b887039787627ffc6454c29c9f8436bf082200fb61f0cd588a550d043fba4e38e18083):
failed to open stream: No such file or directory in/home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/oauth2response.php on
line 14
============================
Before adding suggested code I was getting error same as above and plus
============== the below-- was fixed with your (Kenneth) suggested code==============
Notice: Trying to get property of non-object in /home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/oauth2response.php on line 29
Notice: Undefined index: userID in /home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/oauth2response.php on line 32
Notice: Undefined index: apiDomain in /home4/iucdtcom/public_html/user/~tatiana/kennethware/wizard/oauth2response.php on line 36
having canvas_user_id and domain noted as NULL in
QUERY: INSERT INTO `tokens` )
ERROR: Column 'canvas_user_id' cannot be null
=========================================
Any advice is deeply appreciated.
Thanks in advance.