LibraryActive

Keystone 6 Auth

Opinionated authentication package for Keystone apps, providing sign-in, session and access control integration.

Open source page

Product features

Product features

Add a sessionData query

Adding Access Control

Authentication and Access Control

Configure authentication

Configure sessions

Create a list for users

createAuth

Function that returns withAuth to extend Keystone config with authentication setup.

Loading Session Data

Operations

Posts Example

Putting it all together

Session Data Query

Loads user data into context.session at the start of each request.

Setting up Users, Auth and Session

Stateless Sessions

Encrypted cookie sessions that identify the user item on each request.

Why it's query and not read

withAuth

Extends Keystone config to set up authentication automatically.