MODE-2045: Permission denied exception when access list uses username as principal

This commits fixes user name comparison . Security context returns authenticated user name enclosed in brackets(<username>) what cause name mismatch and false permission denied exception.