public override void AssertAuthorized(Attribute attribute) { if (attribute is RequiresAuthenticationAttribute && !GetSubject().Authenticated) { throw new UnauthenticatedException("The current Subject is not authenticated. Access denied."); } }