Activity Feed
- Posted login/oauth2/token is not being found? on Canvas Question Forum. 09-26-2019 11:44 AM
- Posted Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
- Tagged Is the client_id and the consumer key the same thing? on Canvas Question Forum. 09-23-2019 05:19 PM
My Posts
Post Details | Date Published | Views | Kudos |
---|---|---|---|
login/oauth2/token is not being found? I am getting an error with my application that is confusing me. The POST call on the app to get the authorization token is not going through and the error is giving me a 404. This is the link that is... |
09-26-2019 |
781 |
0 |
Is the client_id and the consumer key the same thing? I am starting to learn about the OAuth workflow for my first LTI and I have to pull information from the API. However, I am completely stuck. I know the Consumer Key and the Consumer secret are agree... |
09-23-2019 |
1142 |
0 |
09-26-2019
11:44 AM
I am getting an error with my application that is confusing me. The POST call on the app to get the authorization token is not going through and the error is giving me a 404. This is the link that is on the Cancas API OAuth documentation so I'm sure it should work. Here is the code I am using to send the Http POST request: var get = <?php echo json_encode($_GET); ?>; var getCode = get.getCode; function makeCorsRequest() { var params = "grant_type=authorization_code"+ "&client_id=25330000000000041"+ "&client_secret=Q--------------------------------------------------------------------------------------------------crj"+ "&redirect_uri=10.50.3.106/certApp.app.php"+ "&code="+ getCode; // This is a sample server that supports CORS. var url = 'https://cors-anywhere.herokuapp.com/http://cehe.beta.instructure.com/login/oauth2/token'; var xhr = createCORSRequest('POST', url); if (!xhr) { alert('CORS not supported'); return; } xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); // Response handlers. xhr.onload = function() { var text = xhr.responseText; var title = getTitle(text); alert('Response from CORS request to ' + url + ': ' + title); } xhr.onerror = function() { alert('Woops, there was an error making the request.'); } xhr.send(params); } I know that the code is getting to the point that it is sending the request because I am getting the alert box that passes back the URL during the onload. It just doesn't seem to send the post to the tokens page to give me my authorization token. Any help on this would be appreciated.
... View more
09-23-2019
05:19 PM
I am starting to learn about the OAuth workflow for my first LTI and I have to pull information from the API. However, I am completely stuck. I know the Consumer Key and the Consumer secret are agreed upon by both parties and entered when the app is added by the admin to the Canvas instance. I also know that the client_id is the number generated with the Developer Key. I am confused how all of these variables work together to develop the OAuth token that can be used access the Canvas API. Any and all help that I can get on this matter would be highly appreciated!
... View more