-
-
Notifications
You must be signed in to change notification settings - Fork 421
[make:auth] support new password hasher interface #824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Generator.php
Outdated
if (null === $phpCompatUtil) { | ||
$templateClassFormatter = new TemplateClassFormatter($this->phpCompatUtil); | ||
|
||
// trigger_deprecation('symfony/maker-bundle', '1.25', 'Initializing Generator without providing an instance of PhpCompatUtil is deprecated.'); | ||
} | ||
|
||
$this->templateClassFormatter = $templateClassFormatter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo....
e3bb8f8
to
16050c0
Compare
…dUserInterface (jrushlow) This PR was squashed before being merged into the 1.0-dev branch. Discussion ---------- [make:user] user entities implement PasswordAuthenticatedUserInterface Starting in Symfony 5.3 - PR symfony/symfony#40267 introduces the new `PasswordAuthenticatedUserInterface` ~& `LegacyPasswordAuthenticatedUserInterface`~ aimed at decoupling passwords from the `UserInterface`. - Generated `User` entity implements `PasswordAuthenticatedUserInterface` if it exists. - Adds correct type hint to the generated `UserRepository::upgradePassword()` method. Authentication related changes are handled in #824 // cc @chalasr Commits ------- f9d9d03 [make:user] user entities implement PasswordAuthenticatedUserInterface
16050c0
to
fcd6c5a
Compare
fcd6c5a
to
0c5913f
Compare
@jrushlow any update? |
howdy @gimler, we have introduced some new functionality recently that improves DX and make implementing the new security system (including the hasher interfaces) as a whole much more easier. Don't quote me on this, but my goal is to have this wrapped up this week. PR #923 has to come first so this can be refactored to use some of the new internal functionality in End of the day, I'm shooting to have this released along with other fixes and improvements later this week*. If all goes as planned, MakerBundle will then be fully "compliant" with the new authentication system as of Symfony * Everything is subject to change |
0c5913f
to
638432c
Compare
0f27385
to
c190f34
Compare
outdated and functionality already added in separate PR's |
adds support for the new
UserPasswordHasherInterface
inmake:auth
. If the new interface exists, it is automatically used.introduces the concept of
TemplateClassDetails
that has getter methods that return preformatted strings for our most common template variable types.Depends on:
fixes #821