How to use Developer Key for OAuth2 Authentication?

Jump to solution
sam_ofloinn
Community Novice

So I'm the admin of a Canvas test server, and want to set up OAuth2 authentication for my webpage.
I've generated a developer key after logging into "https://my.test.instructure.com" and setting up a developer key from there. Let's call the developer key "myTestKey".
And in my code, I made a redirect to the website like this:

https://my.test.instructure.com/login/oauth2/auth?client_id=myTestKey&redirect_uri=192.168.10.10%2Fcallback&response_type=code&scope=conference

However, the result I get is this:

while(1);{"error":"invalid_client","error_description":"unknown client"}


Is this not the correct use of a developer key? How should I be using it instead to get authentication?

Labels (5)
1 Solution
pklove
Community Champion

When you say "Let's call the developer key "myTestKey",what are you actually using for the client_id?

It should be the key's actual ID, maybe something like 9900000000123.

In case its of any use, we have a test site at https://canexa.netkno.nz 

View solution in original post