Skip to content

Improve the user auto-creation flow#80

Open
gakhov wants to merge 2 commits intokstateome:developfrom
gakhov:fix-password-for-default-user-creation
Open

Improve the user auto-creation flow#80
gakhov wants to merge 2 commits intokstateome:developfrom
gakhov:fix-password-for-default-user-creation

Conversation

@gakhov
Copy link

@gakhov gakhov commented Apr 5, 2019

Having a blank string password is not recommended for cases
when the user should be explicitly marked as having no password.
This is exactly the recommended way that is used when the
authentication for the application takes place outside.

Right now the feature of creating users aren't very useful, since
it doesn't allow to set additional parameters on the user and
most of the developers have to create users in response callbacks.
With this simple fix, we return the power to the settings
CAS_AUTO_CREATE_USER, so users can set it and build their custom
middleware by inheritance.

gakhov added 2 commits April 5, 2019 12:08
Having a blank string password is not recommended for cases
when user should be explicitely marked as having no password.
This is exactly the recommended way that is used when the
authentication for the application takes place outside.
Right now feature of creating users aren't very useful, since
it doesn't allow to set additional parameters on the user and
most of developers have to create users in response callbacks.
With this simple fix, we return the power to the settings
CAS_AUTO_CREATE_USER, so users can set it and build their custom
middleware by inheritance.
@gakhov gakhov changed the title Explicitly mark auto-created users as having no password set. Improve the user auto-creation flow Apr 5, 2019
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