create projects with secutrity enabled (part 1 - functionality) (#5380)
fix gracefull shutdown for enabled authentication (#5386)
* create projects with secutrity enabled (part 2 - tests) (#5380)
* minor refactoring