When adding a user account, the Domain update command checks the authentication method and attempts to do an external identity lookup based on the auth method. This really belongs in the web layer. This is because the Domain layer should not be aware of authentication schemes at all.
The Domain should just take raw scalar properties needed to create the new account. Let the web controller do all the external identity lookups.
When adding a user account, the Domain update command checks the authentication method and attempts to do an external identity lookup based on the auth method. This really belongs in the web layer. This is because the Domain layer should not be aware of authentication schemes at all.
The Domain should just take raw scalar properties needed to create the new account. Let the web controller do all the external identity lookups.