You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug - wrong docs example. Authenticate filter context is missing services and schema #641
directus V 11.17.3.
Tutorial URL: Validating Third-Party JWTs in Directus Description:
The tutorial is missing critical information regarding Just-in-Time (JIT) user provisioning.
When trying to create a user inside the authenticate filter, developers face two issues:
context.services is undefined:
In the authenticate filter, the context object does not contain services. This makes it impossible to use UsersService as one would expect in a Directus extension.
context.schema is null:
The schema object in the filter context is null during this stage. Any attempt to use a service (e.g., usersService.createOne()) fails with:
TypeError: Cannot read properties of null (reading 'collections').
Activity
linear commentedon Apr 23, 2026
EDU-516
david-shiko commentedon Apr 23, 2026
What is this?
ComfortablyCoding commentedon Jun 12, 2026
Fixed by #716