Authentication¶
CanvasGroupy requires API tokens for both Canvas LMS and GitHub. These are stored in a JSON credentials file.
Credentials file¶
Create a credentials.json file:
Keep your credentials safe
Never commit credentials.json to version control. Add it to your .gitignore.
Canvas API Token¶
- Log in to your Canvas instance (e.g.,
https://canvas.ucsd.edu) - Go to Account > Settings
- Scroll to Approved Integrations
- Click + New Access Token
- Give it a purpose (e.g., "CanvasGroupy") and generate
- Copy the token into your
credentials.json
GitHub Personal Access Token¶
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click Generate new token (classic)
- Select scopes:
repo,admin:org,read:org - Generate and copy the token into your
credentials.json