> ## Documentation index
> Fetch the complete documentation index at: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/llms.txt
> Ask it with GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash-context7-git-ctx7-4291-onprem-key-rotation-ecs-d-dae4a0.docs7.io/feedback?path=/security/auth-and-access-control&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Authentication and Access Control

This guide covers the authentication mechanisms and access controls available in Context7, including API key handling and enterprise identity features.

## API Key Security

- API keys use cryptographic random generation
- Keys are stored hashed, never in plain text
- Keys can be rotated at any time from your dashboard
- Rate limiting prevents abuse and unauthorized access

## Enterprise SSO

**Single Sign-On (SSO) is available for Enterprise plans.**

### Supported SSO Providers

- SAML 2.0
- OAuth 2.0
- OpenID Connect (OIDC)

### Enterprise Features

- Centralized user management
- Teamspace access controls
- Audit logs for compliance
- Custom authentication policies

### Setup Guides

For step-by-step configuration on self-hosted deployments, see:

- [Microsoft Entra ID (SSO)](/enterprise/security/entra-sso) — wire up Entra ID sign-in for an On-Premise instance
- [OIDC SSO](/enterprise/security/oidc-sso) — sign in to an On-Premise instance with any OpenID Connect provider
- [SAML 2.0 SSO](/enterprise/security/saml-sso) — sign in to an On-Premise instance with Okta, ADFS, Ping, Keycloak or any SAML 2.0 provider
- [Microsoft Entra ID SSO](/enterprise/enterprise-managed-auth/entra) — sign in to Context7 Cloud with Entra ID over SAML, no Azure subscription needed
- [Azure APIM gateway](/enterprise/enterprise-managed-auth/entra-apim) — optional: proxy the Context7 MCP server through Azure APIM with Entra authentication

Contact our sales team at [context7.com/contact](https://context7.com/contact) for Enterprise plan details.
