Skip to content
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

2022 10 26 prefixing password code part 2 #6

Draft
wants to merge 12 commits into
base: 2022-10-26-finish-prefixing-with-password
Choose a base branch
from

Conversation

tcannonfodder
Copy link
Owner

@tcannonfodder tcannonfodder commented Oct 27, 2022

tcannonfodder and others added 2 commits October 26, 2022 20:29
…with-password

2022 10 26 finish prefixing with password
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the `Encryptor` as
	`PasswordEncryptor` and adds a `Devise::Encryptor` shim class
@tcannonfodder tcannonfodder force-pushed the 2022-10-26-prefixing-password-code-part-2 branch from d435cc7 to 620b024 Compare October 30, 2022 22:27
* To begin the process of refactoring Devise to support passkeys, we
	need to decouple authentication from being specifically tied to
	passwords.
	* The first step is explicitly prefixing generically-named components
		like `ParameterSanitizer` with `Password`, since they concern
		password authentication
* To maintain compatability with exisiting installations, we need the
	`Devise::ParameterSanitizer` class.
	* This re-adds the class in, subclassing from
		`PasswordParameterSanitizer` and printing a deprecation warning
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the
	`Devise::Models::Validatable` as `PasswordValidatable`, since it
	concerns the validation requirements when using passwords
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the
	`Devise::Models::Authenticatable` as `PasswordAuthenticatable`, since
	it concerns authentication when using passwords
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the
	`Devise::Models::DatabaseAuthenticatable` as
	`DatabasePasswordAuthenticatable`, since it concerns storing and
	using authentication when using passwords
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the
	`Devise::Models::Recoverable` as `PasswordRecoverable`, since it
	concerns recovering a resource by resetting its password
* Following the pattern of prefixing password-specific code in Devise
	with `password`, this deprecates
	`Devise::Controllers::Helpers.devise_parameter_sanitizer`, replacing
	it with
	`Devise::Controllers::Helpers.devise_password_parameter_sanitizer` to
	make it explicit that the sanitizer handles password parameters
* Following the pattern of prefixing password-specific code in Devise
	with `Password`, this explicitly labels the
	`Devise::RegistrationsController` as
	`Devise::PasswordRegistrationsController`, since it concerns
	registering a user with a password as the authentication method
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.

1 participant