I took editor with toolbar sample code and replaced the feature service with our secured services. Everything works fine except editor toolbar clear selection tool is not working. I tried replacing feature service again with open feature layer on our server, clear selection tool works again. Its just not working with secured layers.