Skip to content

Conversation

@dereuromark
Copy link
Member

Summary

Fixes issues in the Authentication v4 tutorial that was recently updated.

Corrections

  1. PasswordIdentifier instead of AbstractIdentifier - The CREDENTIAL_USERNAME and CREDENTIAL_PASSWORD constants moved to PasswordIdentifier in v4

  2. Identifier config format - v4 uses flat config with className key:

    'identifier' => [
        'className' => 'Authentication.Password',
        'fields' => $fields,
    ],

    Not nested array format.

  3. Separate code blocks - Split the middleware() and getAuthenticationService() code-group into separate blocks. Code-group tabs suggest "pick one" but these are "do both sequentially"

  4. Line highlighting - Fixed {3}{4} for User entity (line 3 is empty, line 4 is the import)

@dereuromark dereuromark force-pushed the fix-auth-tutorial-v4-corrections branch 2 times, most recently from 0dd4334 to 1413003 Compare February 9, 2026 20:01
@dereuromark dereuromark requested a review from josbeir February 9, 2026 20:01
- Use PasswordIdentifier instead of AbstractIdentifier (constants moved in v4)
- Fix identifier config format: use className key instead of nested array
- Split all code-groups into separate blocks for clarity (sequential steps, not choices)
- Restore // [!code ++] annotation for middleware line
- Add file path comments to code blocks for context
@dereuromark dereuromark force-pushed the fix-auth-tutorial-v4-corrections branch from 1413003 to 8dc3721 Compare February 9, 2026 20:32
@dereuromark dereuromark merged commit 21cc781 into 5.x Feb 9, 2026
5 checks passed
@dereuromark dereuromark deleted the fix-auth-tutorial-v4-corrections branch February 9, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants