Security best practices for Authmarks API integrations at Canadian institutions
Running an Authmarks integration safely on campus: least-privilege tokens, the token lifecycle, HTTPS only, polling in place of webhooks, careful handling of student personal information, incident response and how to report a vulnerability.
Published 2026-11-26 · 6 min read
| Auth | Bearer token (amk_ organization API token) |
|---|---|
| Access | REST API v1 and MCP are read-only |
| Transport | HTTPS only |
| Webhooks | Not offered by the API; poll instead |
| Report a vulnerability | https://www.authmarks.com/security |
What you get: a checklist for running an Authmarks integration that stays healthy for years, not only through the first demo. It covers who receives which token, how tokens are born and retired, network rules, why there are no webhooks and what to do instead, how to keep student personal information to a minimum, what to do when something goes wrong, and how to report a vulnerability to us. It applies to the REST API, the MCP server, SCIM and the audit stream and your LMS connection.
What the platform does for you
| Control | Detail |
|---|---|
| Read-only API | REST API v1 and the MCP server only ever read. No endpoint or tool creates, changes or deletes data. |
| Scoped tokens | Every token holds only the scopes chosen when it was created. A missing scope replies 403. |
| One organization per token | Another organization's id replies 401, so a token cannot discover other organizations. |
| Hashed at rest | Tokens are stored as SHA-256 hashes and displayed only once. |
| Rate limits | 600 requests a minute per token; 30 failed authentications a minute per address. |
| Instant revocation | A revoked token replies 401 on its very next request. |
| Audit log | Each token creation, rotation and revocation, and each SCIM write, is recorded in the admin audit log, which you can stream to a SIEM. |
| No scores in the API | The API returns facts about sealed records, never scores, percentages or detector output. |
| No caching | Every response carries Cache-Control: no-store. |
Least privilege
- One token for each integration and each person. A shared token cannot be revoked without breaking everyone who uses it, and its last-used time tells you nothing.
- As few scopes as possible. An LMS health check needs only
lms_read. A SIEM collector needs onlyaudit_stream. Giverecords_readonly to jobs that need student submissions. - Keep directory write access apart.
scim_usersandscim_groupscan change membership. Use them in your identity provider and nowhere else. - A small admin group. Only owners and admins can create tokens. Keep that group small and review it regularly.
The full scope table is in Authentication and scopes.
Token lifecycle
| Stage | Practice |
|---|---|
| Create | Label it with the tool and its owner. Set an expiry (1 to 730 days), as short as the job permits. |
| Store | Keep it in a secrets manager or an encrypted CI secret, loaded into an environment variable. Never put it in code, repositories, client-side apps, tickets, chat or AI prompts. |
| Use | Send it in the Authorization: Bearer header only, never in a URL. |
| Monitor | Review last used in Settings → Developers every month. Have your SIEM alert on token changes. |
| Rotate | On a schedule, whenever someone with access leaves, and any time you are in doubt. |
| Retire | Revoke tokens left unused for longer than your security policy allows, and tokens for tools you no longer run. |
An organization can hold up to 20 live tokens at once. If you are close to that limit, you likely have tokens to retire.
Network
- HTTPS only. Always call
https://www.authmarks.com. Never switch off certificate checks in your HTTP client (curl -k,verify=False,NODE_TLS_REJECT_UNAUTHORIZED=0). - Server side only. Call the API from servers, CI or desktop tools, never from a web page running in a browser. The MCP server refuses browser requests coming from other sites.
- Egress allowlist. If your campus network restricts outbound traffic, allow
www.authmarks.comon port 443. - Timeouts. Set a request timeout (30 seconds is ample) so that a stuck call cannot hold up a job indefinitely.
Webhooks are not offered: poll instead
Neither the REST API nor the MCP server sends webhooks. That spares your integration a public inbound endpoint, which would need its own authentication and replay protection.
To respond to changes:
- Poll the API on a schedule that suits the job, for example every 15 minutes for an LMS health check. With
limit=200, each poll costs only a handful of requests. - Pull the audit stream for security events. It is ordered, gap-free and hash-chained, so a cursor never misses an event. See SCIM and audit stream. The audit stream (and only the audit stream) can also be delivered to a SIEM destination that you configure in the organization settings; an admin sets that up there, not through the API.
Handle student data with care
Some responses contain personal information: student.name and student.email in submissions, and people in SCIM. In Canada, colleges and universities generally hold this kind of information under federal or provincial privacy law: PIPEDA in the private sector, and provincial statutes such as FIPPA in Ontario and British Columbia or Quebec's Law 25. Which law applies, and how, is for your institution and its advisers to decide. In the United States, records like these are often education records under FERPA. Wherever you copy the data, your institution's policies go with it.
- Request only what you need. If a report needs counts, do not store names.
- Keep exports small and temporary. Delete intermediate files once the job finishes. Do not email spreadsheets of student data.
- Keep it out of logs. Log ids and counts rather than names or email addresses.
- No real data in tests. Use invented fixtures.
- Think twice before sending data to an AI model. Whatever an agent reads through MCP is passed to that agent's model provider. Use tokens without
records_readfor agents that do not need student data, and follow your institution's rules on AI tools. - Treat ids as opaque strings. Do not try to decode them.
The audit stream already uses pseudonyms for people and carries no document content, names or email addresses.
Incident response
If you suspect that a token has leaked or an integration has misbehaved:
- Contain. Revoke the token in Settings → Developers. It stops working right away.
- Replace. Issue a new token with the same scopes or fewer, and update the service.
- Gauge the impact. Note the token's scopes and its last-used time; together they limit what it could have read.
- Investigate. Review the admin audit log, or your SIEM if you stream to one, for the period in question.
- Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret stored alongside it.
- Notify. Follow your institution's incident and breach-notification process; PIPEDA and several provincial privacy laws contain breach-reporting provisions, and your privacy office decides how they apply. If you believe Authmarks itself is affected, let us know through the security page.
- Learn. Record how it happened and add a control (secret scanning, a shorter expiry, narrower scopes).
Report a vulnerability
If you discover a security problem in Authmarks, please report it privately as set out on our security page. Tell us what you found, how to reproduce it and what an attacker could do with it. Please do not access other people's data, run denial-of-service tests or make the issue public before we have fixed it.
Healthy integration checklist
- One labelled token for each integration and person, with as few scopes as possible.
- An expiry set on every token.
- Tokens kept in a secrets manager or CI secrets, loaded as environment variables.
- Secret scanning for
amk_[A-Za-z0-9_-]{43}in each repository. - Every call made over HTTPS from server-side code, with timeouts.
-
429handled usingRetry-After;503retried with backoff;401and403alert a person. - Student names and email addresses kept out of logs, tests and AI prompts unless they are needed.
- A monthly review of last-used times, with unused tokens revoked.
- Token changes and SCIM writes visible in your SIEM.
- A named owner and a written rotation date for every integration.
Related pages
Sources
- U.S. Department of Education, FERPA — as of 2026-11-26
- OWASP API Security Top 10 (2023) — as of 2026-11-26
- NIST SP 800-61 Rev. 3, Incident Response Recommendations — as of 2026-11-26
Change notes
- 2026-11-26 — First published.
Spotted an error? Email sales@authmarks.com and we will correct the page and date the correction.