Add authentication keys to hashmap 'auth'. Fix warnings.