Where to put security when using DDD - domain driven design

nemo_87

As title is suggesting, I am interested in general opinion on where is the best to put all security related code(like code for JWT, standard authentication, etc.)

I am thinking about it quite a while and I do not have a clue what should be suitable place for this.

Does somebody has any experience with this. What is for you correct place for this, according to DDD?

Martin4ndersen

As mentioned by @inf3rno in Access Control in Domain Driven Design, Vaughn Vernon briefly touches upon this in his book Implementing Domain-Driven Design.

Security and permissions should be centralized in its own bounded context, which is then used by other bounded contexts. Have a look at the Identity Access bounded context for inspiration, but I recommend following Schneier's Law, which states that you should not build your own security system.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Domain Driven Design - Domain or Security

From Dev

Where to put general purpose serialization class in domain driven design?

From Dev

Domain Driven Design - where should we put repositories?

From Dev

Domain Driven Design (DDD) and database generated reports

From Dev

DDD (Domain Driven Design) Can I use inheritance ?

From Dev

DDD: Where to put implementation of domain services

From Dev

Where is the call to persistence in the domain driven design

From Dev

Where to find Domain Driven Design consultants?

From Dev

How to handle Domain Driven Design when domain is dynamic / changes

From Dev

How to handle Domain Driven Design when domain is dynamic / changes

From Dev

Layers in Domain Driven Design

From Dev

Where does the message bus service live in Domain Driven Design

From Dev

When we shouldn't use Domain-Driven Design approach?

From Dev

Domain Driven Design - When to seperate one bounded context into two

From Dev

Very basic comment system using domain driven design

From Dev

Very basic comment system using domain driven design

From Dev

Access Control in Domain Driven Design

From Dev

Domain Driven Design and batch processing

From Dev

Implementing Domain Driven Design Cost

From Dev

Implementing Domain Driven Design Cost

From Dev

Domain Driven Design Bounded Context Domain Objects

From Dev

Domain Driven Design: infrastructure concern or domain concern?

From Dev

Domain Driven Design: infrastructure concern or domain concern?

From Dev

Domain Driven Design. Entity type design

From Dev

Implementing Paging and Sorting with Domain Driven Design

From Dev

Implementing Domain-Driven Design and Transactions

From Dev

Domain driven design repository implementation in infrastructure layer

From Dev

Domain Driven Design in Node.js Application

From Dev

Fetching associated aggregates in Domain driven Design

Related Related

  1. 1

    Domain Driven Design - Domain or Security

  2. 2

    Where to put general purpose serialization class in domain driven design?

  3. 3

    Domain Driven Design - where should we put repositories?

  4. 4

    Domain Driven Design (DDD) and database generated reports

  5. 5

    DDD (Domain Driven Design) Can I use inheritance ?

  6. 6

    DDD: Where to put implementation of domain services

  7. 7

    Where is the call to persistence in the domain driven design

  8. 8

    Where to find Domain Driven Design consultants?

  9. 9

    How to handle Domain Driven Design when domain is dynamic / changes

  10. 10

    How to handle Domain Driven Design when domain is dynamic / changes

  11. 11

    Layers in Domain Driven Design

  12. 12

    Where does the message bus service live in Domain Driven Design

  13. 13

    When we shouldn't use Domain-Driven Design approach?

  14. 14

    Domain Driven Design - When to seperate one bounded context into two

  15. 15

    Very basic comment system using domain driven design

  16. 16

    Very basic comment system using domain driven design

  17. 17

    Access Control in Domain Driven Design

  18. 18

    Domain Driven Design and batch processing

  19. 19

    Implementing Domain Driven Design Cost

  20. 20

    Implementing Domain Driven Design Cost

  21. 21

    Domain Driven Design Bounded Context Domain Objects

  22. 22

    Domain Driven Design: infrastructure concern or domain concern?

  23. 23

    Domain Driven Design: infrastructure concern or domain concern?

  24. 24

    Domain Driven Design. Entity type design

  25. 25

    Implementing Paging and Sorting with Domain Driven Design

  26. 26

    Implementing Domain-Driven Design and Transactions

  27. 27

    Domain driven design repository implementation in infrastructure layer

  28. 28

    Domain Driven Design in Node.js Application

  29. 29

    Fetching associated aggregates in Domain driven Design

HotTag

Archive