# Security & authentication

How Salaxy authenticates people, partners and agents, and what an agent is allowed to do — shared by the MCP and REST paths.

**This section is being written:**
**REST authentication** and **MCP authentication** are written — see [REST authentication](https://code.salaxy.com/security/rest-authentication.md) and [MCP authentication](https://code.salaxy.com/security/mcp-authentication.md). The permissions and token pages show headings for what they will cover; the user levels are published together with Salaxy's new authentication server.

## Who signs in

Employers, their users, accounting firms and payroll outsourcing companies, partners — and the agents acting for them.

## Accounts and roles

The account model and how partner, employer and user roles relate.

## Environments

Test, demo and production hosts — test and demo share test data. See [Environments](https://code.salaxy.com/get-started/environments.md).

## One section for MCP and REST

Accounts, roles and permissions are the same on both paths; only the sign-in mechanics differ.

## In this section

[MCP authentication](https://code.salaxy.com/security/mcp-authentication.md) · [REST authentication](https://code.salaxy.com/security/rest-authentication.md) — [password](https://code.salaxy.com/security/password.md), [impersonation for SSO](https://code.salaxy.com/security/impersonation.md), [federation for banks](https://code.salaxy.com/security/federation.md), [account creation](https://code.salaxy.com/security/account-creation.md) · [Permissions and human approval](https://code.salaxy.com/security/permissions.md) · [Token handling for agents](https://code.salaxy.com/security/tokens.md)
