traits and security schemes runtime injection