Moved generateSasToken into the SecurityHelper class.