liveBook · Manning

Key-based authentication

Key-based authentication is an authentication technique that verifies identity or authorization using cryptographic key material rather than a password.

How 2 Manning books explain it

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.

Read how Practical Automation with PowerShell: Effective scripting from the console to the cloud explains key-based authentication →

Related concepts

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.