Update CMS authentication tutorial for Authentication plugin v4#8224
Merged
Update CMS authentication tutorial for Authentication plugin v4#8224
Conversation
Contributor
|
ask your ai to use "improve this page using vitepress markdown extensions like code grouping, and others that could improve cognitive load" to give it that extra sauce ;-) |
27aaf24 to
13e18ca
Compare
Updates for v4 API:
- Update version requirement to ~4.0
- Use allowUnauthenticated() instead of deprecated addUnauthenticatedActions()
- Use array URLs instead of Router::url() strings
- Use setConfig() method for service configuration
- Use AbstractIdentifier constants for field mapping
- Use getLoginRedirect() for handling post-login redirects
- Simplify login/logout actions
VitePress enhancements for better readability:
- Add code-group tabs for related code (middleware/service, controller/template)
- Add line highlighting {3,12-18} for important additions
- Add ::: tip, ::: info, ::: warning, ::: details containers
- Add summary table for authentication classes
- Use [!code ++] diff annotation for new code
- Restructure with clearer subsections
13e18ca to
dd97e57
Compare
Member
Author
|
Done :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the CMS tutorial authentication documentation for Authentication plugin v4.
API Updates for v4
~3.0to~4.0addUnauthenticatedActions()withallowUnauthenticated()Router::url()strings with array URLs for better maintainabilitysetConfig()method instead of constructor args for service configurationAbstractIdentifier::CREDENTIAL_*constants for field mappinggetLoginRedirect()method for handling post-login redirectsallowMethod(), cleaner flash message logic)VitePress Enhancements
::: code-grouptabs for related code blocks (middleware/service, controller/template){3,12-18}for important additions::: tip,::: info,::: warning,::: detailscontainers[!code ++]diff annotation for new middleware lineBased on: