liveBook · Manning

Key-based authentication

Key-based authentication is a method of verifying identity or access using a cryptographic key credential 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 →

Also covered in

What to know first

Related concepts

Questions about key-based authentication

What is key-based authentication?

Key-based authentication is a method of verifying identity or access using a cryptographic key credential rather than a password.

Which Manning books explain key-based authentication?

Django in Action and Practical Automation with PowerShell: Effective scripting from the console to the cloud.

What should I know before learning key-based authentication?

Manning books that teach key-based authentication usually introduce password authentication and SSH first.

What is the difference between key-based authentication and password authentication?

Key-based authentication is a method of verifying identity or access using a cryptographic key credential rather than a password. Password authentication is a method of verifying a claimed identity or access by checking a supplied secret password, often alongside a user identifier.

What is key-based authentication a kind of?

Key-based authentication is a kind of authentication. Authentication is the process of verifying the claimed identity of a user, service, device, or other entity.

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.