Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I am trying to incorporate a bunch of tests for my application and I was wondering if there is a test account or test authorization environment with some default auth token that I can use.
I can create a generic account on canvas.instructure.com but because the project is open source I do not wish for my auth token to be released in the wild.
Hello @michael_tsikerd ,
There is not a "default token" for Canvas that you can use. In general, you need to store the tokens somewhere outside files you are posting to the repository. This can be in an environment variable, or in a configuration file stored in the user's profile. I personally prefer the second approach because you can have your app look for the configuration file and, if it doesn't exist, prompt the user to enter their token and then write the configuration file for them.
As long as you make sure the configuration file is ignored when you push to the repo, you should be all set.
To participate in the Instructure Community, you need to sign up or log in:
Sign In