Key-based authentication
Key-based authentication is an authentication technique that verifies identity or authorization using cryptographic key material rather than a password.
Django in Action
Key-based authentication is a request-authentication technique that verifies access by requiring a secret key, typically supplied in a request header.
- How it is used
- Protects API endpoints by requiring a key in every request header.
- How deep it goes
- Explains handler construction, endpoint attachment, request flow, testing, and interactive authorization, but defers scalable key management.
- Examples
- Uses an X-API-KEY handler, a protected venue-creation endpoint, a Django test request, and Ninja’s authorization interface.
- What you can do after
- Apply it via Django Ninja by implementing an APIKeyHeader subclass, attaching its instance to endpoints, and testing authenticated requests.
Read how Django in Action explains key-based authentication →
Practical Automation with PowerShell: Effective scripting from the console to the cloud
Key-based authentication is an authentication method that proves identity using cryptographic key material instead of a password.
- How it is used
- Supports noninteractive PowerShell remoting over SSH when automation cannot rely on typed passwords.
- How deep it goes
- Explains key pairs, agent storage, host verification, server settings, and an operational Windows-to-Linux setup sequence.
- Examples
- Uses ssh-keygen, ssh-add, authorized_keys installation, SSH configuration, and Invoke-Command against a Linux server.
- What you can do after
- Operate PowerShell remoting over SSH with a managed private key and disable password authentication after validation.
Related concepts
- public-private key pairuses · A public-private key pair is a mathematically related public key and private key used together for asymmetric cryptographic operations.
- APIKeyHeaderimplemented by · APIKeyHeader is a Django Ninja security base class for implementing API-key authentication from an HTTP header.
- authenticationkind of · Authentication is the process of establishing or verifying the identity of a user, service, device, or other communicating entity.
- Cosmos DBconfigures · Azure Cosmos DB is Microsoft's globally distributed, multimodel cloud database service, supporting multiple data models and APIs.
- password authenticationcontrasts with · Password authentication is an authentication method that verifies a claimed identity or access by checking a supplied secret password or passphrase.
- HTTP headeruses · An HTTP header is a named metadata field in an HTTP request or response that conveys information about the message or directs its processing.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

