Using the OAuth open source library
If your application interacts with external libraries other than Google's basic services, then it should be authenticated. In other words, if your application runs on behalf of a user, then that user should authorize your application to grant access to his/her data. GAS does not provide any built-in authentication service, but you can use an open source OAuth library.