dddk_security 0.1.0

Security module of dddk_core. Impl features regarding command_bus pattern and security
Documentation
dddk_security-0.1.0 has been yanked.

4dk-security

The lib extends core behaviour with security features. It implements the entites : SecuredCommand, SecuredQuery, SecuredCommandHandler, SecuredQueryHandler, SecuredCommandDispatcher, SecuredQueryDispatcher.

Command

SecuredCommand

Extends Command by decoration. SecuredCommand has to be constructed with user roles.

SecuredCommandHandler

Extends CommandHandler by decoration. SecuredHandler is defined with a permission.

SecuredCommandDispatcher

Replace the CommandDispatcher implementation from core-rust.

Query

SecuredQuery

Extends Query by decoration. SecuredQuery has to be constructed with user roles.

SecuredQueryHandler

Extends QueryHandler by decoration. SecuredHandler is defined with a permission.

SecuredQueryDispatcher

Replace the QueryDispatcher implementation from core-rust.

You can find in samples different bus composition.