Improvements on angular-security integration