Canvas LMS security depends less on the login page than on the developer keys, access tokens and LTI tools that connect the platform to dozens of other systems. Universities and colleges often run Canvas with a large estate of integrations: student information system sync jobs, analytics exports, plagiarism and proctoring tools, publisher content and in-house scripts. Each of these runs as a non-human identity, and each holds a credential that can read or change platform data at scale.
This guide covers platform security only: account administration, developer keys, API tokens and scopes, LTI 1.3 tool configuration, single sign-on and authentication logging. It is written for Canvas administrators, identity teams and security engineers who need to bring the integration estate under governance.
This is an independent guide from NHI Mgmt Group, based on Instructure's public documentation as of November 2026. It is not sponsored or reviewed by Instructure. Product features change, so confirm settings against Instructure's current documentation.
Key takeaways
- Developer keys are OAuth2 client ID and secret pairs. Treat every key as a non-human identity with an owner, a purpose and a review date.
- An unscoped developer key can reach everything the authorising user can reach. Enforce scopes on every API key you create.
- Canvas treats access tokens as password equivalents. Manually generated tokens are for testing only; shared integrations must use OAuth.
- LTI 1.3 tools authenticate with keys and service scopes. Grant only the LTI Advantage scopes a tool needs, and never rely on placement visibility as access control.
- Require multi-factor authentication on authentication providers, keep account-level permissions locked where sub-accounts should not override them, and review the authentication log, which Canvas keeps for one year.
How identity and integrations work in Canvas
Canvas has two broad classes of identity. Human users sign in through an authentication provider and act through roles at the account, sub-account or course level. Non-human identities act through developer keys and the tokens issued from them.
Instructure's documentation describes developer keys as OAuth2 client ID and secret pairs stored in Canvas. An application is granted access after a user authorises it, and Canvas returns an API access token in the final step of the OAuth2 flow. The same developer key mechanism also carries LTI 1.3 tool registrations, where the key holds a client ID, a public JSON Web Key and a list of LTI Advantage service scopes.
Two ownership models matter for governance:
- Root account keys are created by your administrators and, per the documentation, are only functional for the account they are created in and its sub-accounts. Your administrators control their scopes.
- Global keys are created by Instructure employees and work in any account where they are enabled. Root account administrators can turn them on or off for their own account, but scope changes for global keys sit with Instructure.
This split defines your inventory task. Root account keys are fully yours to scope, rotate and retire. Global keys are partly outside your control, so the main lever is whether they are switched on in your account at all.
The documentation also notes that developer keys are scoped to the institution they are issued from. A token issued on one Canvas domain will not work on another. For an institution with production, test and beta environments, that means each environment needs its own inventory.
Admin roles and privileged access
Account-level roles in Canvas use the base role type AccountMembership and are not tied to a course enrolment. The built-in AccountAdmin role sits alongside any custom account roles you create. The Roles API documentation lists the permission flags that shape privilege:
enabledandexplicitcontrol whether a permission is granted or denied by this role rather than inherited.lockedstops new roles in sub-accounts from overriding the setting.applies_to_selfandapplies_to_descendantscontrol whether a grant applies to the account itself, its children, or both.
Use these flags deliberately. In a large institution, faculties and departments often get their own sub-accounts and their own administrators. Lock the permissions that govern integrations and authentication at the root account so that a sub-account administrator cannot widen them locally. The documentation names manage_lti_add (labelled "LTI - add") as one such permission, and view_user_logins as another that exposes sensitive data.
Two behaviours deserve attention during role clean-up. First, built-in roles cannot be deactivated. Second, deactivating a custom role hides it and blocks new assignments, but existing users assigned to the role continue to function with the same permissions they had previously. Deactivation is not removal. To actually reduce privilege, remove the role assignments themselves, then deactivate the role.
Recommended admin practices from NHI Mgmt Group:
- Keep the number of root
AccountAdminholders small and named. Use custom account roles with narrow permission sets for help desk, course support and reporting staff. - Separate the administrators who can create developer keys from those who approve them. Canvas does not enforce this, so make it a process control.
- Review account role assignments at least each term, alongside staff departures.
- Never use a human administrator's personal token for an integration. When that person leaves, the integration breaks or, worse, keeps running on a token nobody owns.
Developer keys and API token scopes
Scopes are the most important control on a Canvas API key. The documentation describes scopes in the form url:<HTTP Verb>|<Canvas API Endpoint Path>. Tokens requested with a scope must fall within the scopes granted to the key, and a request to an endpoint whose scope was not granted returns a 401 Unauthorized response.
Three documented behaviours shape how you should manage scopes:
- Unscoped keys inherit the user's full reach. An unscoped key can access everything the authorising user can access. If an administrator authorises an unscoped integration, that integration effectively carries administrator rights.
- Removing a scope invalidates tokens. When a scope is removed from a key, all access tokens derived from that key are invalidated. Plan scope reductions as a change, with the integration owner ready to re-authorise.
- Unscoping a key widens existing tokens. If a scoped key is changed to unscoped, existing tokens gain access to all of the authorising user's resources. Treat any change from scoped to unscoped as a privileged change that needs approval.
The documentation also notes that with scoped tokens, include parameters are ignored unless "Allow Include Parameters" is enabled. Turn that setting on only when an integration demonstrably needs the extra data, because include parameters can pull related objects into a response.
Only a root account administrator or an Instructure employee can enable or disable developer key scopes. Canvas also returns unauthorized_client during the authorisation request, or 401 during an API request, when a key is not enabled for the account. That gives you a clean kill switch: turning a key off stops its use without deleting its record, which preserves the audit trail.
Access token lifecycle and handling
The Canvas OAuth2 documentation sets out how tokens behave once issued:
- Developer keys issued after October 2015 generate access tokens with a one hour expiration.
- Refreshing issues a new access token without prompting the user again. The refresh token is not rotated: the documentation states that the same refresh token is to be reused. That makes the refresh token the long-lived secret to protect.
- Authorisation codes are single use. A repeated request with the same code fails.
- The optional
replace_tokens=1parameter destroys existing access tokens issued for the developer key and secret and replaces them. - Logout is a
DELETErequest tologin/oauth2/token. - An expired, deleted or revoked token returns HTTP 401. Check the
WWW-Authenticateheader to tell this apart from a permissions denial.
On handling, the documentation is direct. Access tokens are password equivalent. Storing a token is in many ways equivalent to storing the user's password. Tokens should never appear in URLs or web pages, and while sending a token in the query string or POST parameters is supported, it is discouraged. Use the Authorization: Bearer header.
Manually generated tokens, created from a user's profile page, are for testing only. The documentation states that applications in use by multiple users must use OAuth to obtain tokens, and that asking any other user to manually generate a token and enter it into your application is a violation of Canvas' API policy. In practice, many institutions still find manual tokens embedded in reporting scripts and spreadsheets. Hunting these down is one of the highest value tasks in a Canvas review.
Recommended token practices from NHI Mgmt Group:
- Store client secrets and refresh tokens in a secrets manager, never in scripts, LTI tool configuration files or shared drives. The documentation states the client secret should never be shared.
- For each integration, record which human authorised the token. If that person leaves, the token's reach changes with their roles, so the integration needs a new authorisation under a governed account.
- Use
replace_tokens=1during planned re-authorisation so stale tokens do not linger. - Alert on 401 spikes per developer key. They can mean a scope removal worked as intended, or that someone is replaying an old token.
LTI 1.3 tools and LTI Advantage services
LTI tools are often the largest and least visible part of the Canvas integration estate. Each LTI 1.3 tool is registered through a developer key and is then deployed into accounts or courses. The LTI developer key configuration documentation describes the security-relevant settings.
Keys and signatures
Canvas signs its launch messages, and tools must validate that the request is actually coming from Canvas. Canvas' public keys are environment specific, but not domain specific. Production keys are published at https://sso.canvaslms.com/api/lti/security/jwks; the documentation says the older canvas.instructure.com location still works but should be replaced. Check that your in-house tools have moved.
In the other direction, a tool authenticates to Canvas for LTI Advantage services using the client credentials grant, signed with an RSA private key that matches a public JWK on the developer key. The tool supplies either a public_jwk or a public_jwk_url, and the JWK must include alg and use. The private key is the tool's real credential. Ask vendors how they store and rotate it.
Service scopes
LTI Advantage scopes are the comma separated list of scopes allowed when the tool uses the client credentials grant. Review each one. The allowed list includes a scope for updating the tool's own public JWK. Grant that only when the tool's key rotation process depends on it, because it allows the tool to change the key Canvas trusts. Per the OAuth documentation, client credentials tokens work only where the tool is deployed, and only for line items associated with that tool, which is a useful boundary.
Privacy level
The required privacy_level setting controls what user data Canvas sends to the tool. Allowed values are anonymous, public, name_only and email_only. The user ID in the sub claim is always included. Choose the lowest level that lets the tool work.
Placements and permissions
Placements define where a tool appears and can be disabled individually with enabled. Placement-level values override tool-level settings, so review both. The required_permissions setting hides a placement from users without the listed permissions, but the documentation is clear that this is not access control. For true access control, the tool must check the Canvas.membership.permissions variable itself. Custom fields reach the tool as strings, and tool developers should treat them as untrusted input.
Deployments
A single developer key may have many deployments. Canvas exposes the deployment_id after a tool has been deployed with the client ID. Tools can use the deployment ID to tell installations apart, and should verify target_link_uri during the final launch. For governance, record every deployment of each key, not just the key itself.
Single sign-on and authentication providers
The Authentication Providers API documentation lists supported provider types, including SAML, OpenID Connect, LDAP, CAS and Canvas' own authentication. Key settings for a hardened configuration:
- Multi-factor authentication. You can set
mfa_requiredfor any provider. The documentation notes the account must not have MFA disabled. Require it on every provider used by administrators. - SAML signing. Signing of AuthnRequest, LogoutRequest and LogoutResponse messages is optional, with RSA-SHA1 and RSA-SHA256 supported. Turn signing on and choose RSA-SHA256.
- SAML metadata. Metadata can be supplied from a URI that Canvas saves and refreshes periodically, which helps certificate rollover. Protect the identity provider side accordingly, because a change there flows straight into Canvas.
- LDAP. TLS defaults to
start_tls. The provider stores bind credentials (auth_username,auth_password), which is a service account credential to inventory and rotate like any other. - OpenID Connect. The provider requires a client ID and client secret, another non-human credential to record.
- Just-in-time provisioning and federated attributes. You can set
jit_provisioningfor any provider other than Canvas, and map attributes that update at each login. The documentation notes that admin role mappings only apply at the root account level, not sub-accounts. Decide carefully whether the identity provider should be allowed to grant admin roles at all. - Discovery URL. If a discovery URL is set, Canvas forwards all users to that URL when they need to authenticate. Keep a documented break-glass path for when the identity provider is unavailable.
Only administrators who can manage_authentication_provider for the root account can restore a provider. Keep that permission within the same small group that holds root administration.
Logging and detection
The Authentications Log API records login, logout and renew events, with fields for the login (pseudonym), account and user. Events can be queried by login, by account (with filters for user and authentication provider) or by user. The documentation states that authentication logs are stored for one year. If your retention policy or investigation needs exceed that, export the logs to your SIEM on a schedule.
The audit endpoints themselves are protected by API scopes of the form url:GET|/api/v1/audit/authentication/.... Create a dedicated, scoped developer key for log export rather than reusing a broad integration key.
Detection ideas, labelled illustrative and to be tested in your environment:
- Logins for administrator accounts through a provider other than the expected SSO provider. The account query supports an
auth_provider_idfilter, including the valueunknown. - A sudden rise in 401 responses for a single developer key, which can indicate replay of revoked tokens.
- New developer keys, scope changes, or a key moving from scoped to unscoped, captured through change records.
- Bulk API reads from a token whose authorising user has just changed role or left.
Relevant MITRE ATT&CK techniques include T1528 Steal Application Access Token, T1550.001 Application Access Token and T1078.004 Cloud Accounts.
Governing the integration estate
Hardening individual settings is not enough if nobody knows which integrations exist. Build a register with one row per developer key and per LTI deployment, recording:
- Key type (API or LTI), root or global, and enabled state.
- Business owner and technical owner, plus the supplier for third-party tools.
- Granted scopes, or a flag for unscoped keys, and the include parameter setting.
- For API keys, the user who authorised the current tokens and that user's roles.
- For LTI keys, privacy level, enabled placements, LTI Advantage scopes and the JWK source.
- Where the client secret, refresh token or private key is stored.
- Review date and decommissioning trigger, such as contract end.
Review the register each academic term. When a contract ends, switch the key off first, confirm nothing breaks, then remove deployments and delete the key. Turning a key off is reversible and gives you time to find hidden dependencies.
Common failure patterns
- Unscoped keys authorised by administrators. The integration inherits administrator reach and nobody notices because it works.
- Manual tokens in scripts. A personal access token, generated for a test, becomes the backbone of a nightly export and is never rotated.
- Orphaned tokens after staff leave. The authorising user departs, but the integration keeps running or silently changes reach as roles change.
- Treating role deactivation as removal. Existing holders of a deactivated custom role keep their permissions.
- Placement hiding mistaken for access control. A tool relies on
required_permissionsinstead of checking permissions itself. - Over-generous LTI settings. Privacy level set to share email by default, or the JWK update scope granted without need.
- MFA not required on the provider admins use. SSO is in place, but an older Canvas or LDAP provider remains as a weaker path.
- Logs left in the platform. Authentication logs age out after a year before an investigation needs them.
Practitioner checklist
- Export a full list of developer keys, mark each as root or global, API or LTI, and assign an owner.
- Enforce scopes on every root account API key, and treat any change to unscoped as a privileged change.
- Switch off global keys that your institution does not use.
- Find and retire manually generated tokens used by shared integrations; move them to OAuth.
- Move client secrets, refresh tokens and LTI private keys into a secrets manager.
- For each LTI tool, set the lowest workable privacy level, minimum placements and minimum LTI Advantage scopes.
- Confirm in-house tools validate Canvas launches against the
sso.canvaslms.comJWKS location. - Lock integration and authentication permissions at the root account and keep
AccountAdminholders few and named. - Set
mfa_requiredon administrator authentication providers and sign SAML messages with RSA-SHA256. - Export authentication logs to your SIEM through a dedicated scoped key before the one year retention expires.
Standards and references
- Instructure: Canvas Developer Keys
- Instructure: Canvas OAuth2
- Instructure: Canvas LTI 1.3 Developer Key Configuration
- Instructure: Canvas Authentication Providers API
- Instructure: Canvas Authentications Log API
- IETF: RFC 9700 Best Current Practice for OAuth 2.0 Security
- CIS: Control 5 Account Management
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: API Key Management Guide · Consent Phishing and Illicit OAuth Grants Guide · NHI Authentication Guide · NHI Offboarding and Decommissioning Guide