Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Store implementations should have a way of notifying the UserManager #245

@tugberkugurlu

Description

@tugberkugurlu

Currently, a store implementation has no structured way to notify the UserManager on certain situations. For example, the e-mail uniqueness. This is currently achieved by the UserValidator service and this will work just fine for most of the situations but in a very niche race condition scenario, the application may end up putting duplicate e-mails into the system. E-mail uniqueness check should only be handled by the store itself when it's actually creating the user or altering an existing user's e-mail address. The user name is another similar case.

For these type of situations, the user store needs to be able to clearly communicate to the UserManager so that the right validation error messages would bubble up to the higher level.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions