Security best practices for Authmarks API integrations
How to run an Authmarks integration safely: least-privilege tokens, token lifecycle, HTTPS only, polling instead of webhooks, minimal handling of student data, incident response and reporting a vulnerability.
Publicēts 2026-11-26 · 5 min lasīšanas
| Auth | Bearer token (amk_ organisation 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 just through the first demo. It covers who gets which token, how tokens live and die, network rules, why there are no webhooks and what to do instead, how to keep student data 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 read. There are no endpoints or tools that create, change or delete data. |
| Scoped tokens | Each token holds only the scopes chosen when it was made. A missing scope answers 403. |
| One organisation per token | Another organisation's id answers 401, so a token cannot discover other organisations. |
| Hashed at rest | Tokens are stored as SHA-256 hashes and shown once. |
| Rate limits | 600 requests a minute per token; 30 failed authentications a minute per address. |
| Instant revocation | A revoked token answers 401 on the next request. |
| Audit log | Every token create, rotate and revoke, and every SCIM write, is in the admin audit log, which you can stream to a SIEM. |
| No scores in the API | The API returns sealed-record facts, never scores, percentages or detector output. |
| No caching | Responses carry Cache-Control: no-store. |
Least privilege
- One token per integration and per person. A shared token cannot be revoked without breaking everyone, and its last-used time tells you nothing.
- Fewest scopes. An LMS health check needs only
lms_read. A SIEM collector needs onlyaudit_stream. Only giverecords_readto jobs that need student submissions. - Keep directory write access separate.
scim_usersandscim_groupscan change membership. Use them only in your identity provider. - Few admins. Only owners and admins can make tokens. Keep that group small and review it.
The scope table is in Authentication and scopes.
Token lifecycle
| Stage | Practice |
|---|---|
| Create | Label with the tool and owner. Set an expiry (1 to 730 days), as short as the job allows. |
| Store | A secrets manager or encrypted CI secret, loaded into an environment variable. Never in code, repositories, client-side apps, tickets, chat or AI prompts. |
| Use | Authorization: Bearer header only. Never in a URL. |
| Monitor | Check last used in Settings → Developers monthly. Alert on token changes in your SIEM. |
| Rotate | On a schedule, when someone with access leaves, and whenever in doubt. |
| Retire | Revoke tokens that have gone unused for longer than your security policy allows, and tokens for tools you no longer run. |
An organisation can hold up to 20 live tokens. If you are near that limit, you probably have tokens to retire.
Network
- HTTPS only. Always call
https://www.authmarks.com. Do not disable 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 in a browser. The MCP server refuses browser requests from other sites.
- Egress allowlist. If your network restricts outbound traffic, allow
www.authmarks.comon port 443. - Timeouts. Set a request timeout (30 seconds is plenty) so a stuck call does not hold a job forever.
Webhooks are not offered: poll instead
The REST API and the MCP server do not send webhooks. That keeps your integration free of a public inbound endpoint that would need its own authentication and replay protection.
To react to changes:
- Poll the API on a schedule that fits the job, for example every 15 minutes for an LMS health check. With
limit=200, a poll costs only a few requests. - Pull the audit stream for security events. It is ordered, gap-free and hash-chained, so a cursor never skips an event. See SCIM and audit stream. The audit stream (only) can also be delivered to a SIEM destination you configure in organisation settings; that is set up by an admin, not through the API.
Handle student data with care
Some responses contain personal data: student.name and student.email in submissions, and people in SCIM. In the United States, records like these are often education records under FERPA, and your institution's policies apply wherever you copy them.
- Ask only for what you need. If a report needs counts, do not store names.
- Keep exports minimal and short-lived. Delete intermediate files when the job ends. Do not email spreadsheets of student data.
- Keep it out of logs. Log ids and counts, not names or emails.
- No real data in tests. Use made-up fixtures.
- Think before you send data to an AI model. Anything an agent reads through MCP goes to that agent's model provider. Use tokens without
records_readfor agents that do not need student data, and follow your institution's rules for AI tools. - Use 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 emails.
Incident response
If you suspect a token leaked or an integration misbehaved:
- Contain. Revoke the token in Settings → Developers. It stops working immediately.
- Replace. Issue a new token with the same or fewer scopes and update the service.
- Scope the impact. Note the token's scopes and last-used time; those bound what it could read.
- Investigate. Review the admin audit log, or your SIEM if you stream it, for the window in question.
- Clean up. Remove the token from wherever it leaked (git history, chat, tickets) and rotate any secret stored next to it.
- Notify. Follow your institution's incident and breach-notification process. If you believe Authmarks itself is affected, tell us through the security page.
- Learn. Write down how it happened and add a control (secret scanning, shorter expiry, narrower scopes).
Report a vulnerability
If you find a security problem in Authmarks, please report it privately as described on our security page. Include what you found, how to reproduce it and what an attacker could do. Please do not access other people's data, run denial-of-service tests or share the issue publicly before we have fixed it.
Healthy integration checklist
- One labeled token per integration and person, with the fewest scopes.
- An expiry on every token.
- Tokens in a secrets manager or CI secrets, loaded as environment variables.
- Secret scanning for
amk_[A-Za-z0-9_-]{43}in every repository. - All calls over HTTPS from server-side code, with timeouts.
-
429handled withRetry-After;503retried with backoff;401and403alert a person. - Student names and emails kept out of logs, tests and AI prompts unless required.
- Monthly review of last-used times; unused tokens revoked.
- Token changes and SCIM writes visible in your SIEM.
- A named owner and a written rotation date for each integration.
Related pages
Avoti
- U.S. Department of Education, FERPA — stāvoklis uz 2026-11-26
- OWASP API Security Top 10 (2023) — stāvoklis uz 2026-11-26
- NIST SP 800-61 Rev. 3, Incident Response Recommendations — stāvoklis uz 2026-11-26
Izmaiņu piezīmes
- 2026-11-26 — First published.
Pamanījāt kļūdu? Rakstiet uz sales@authmarks.com, un mēs izlabosim lapu un norādīsim labojuma datumu.