Application boilerplate with authenticated driving directions.
[Try it Live - you'll need an AGOL username and password] (http://esricanada.github.io/application-boilerplate-driving-directions-js)
[Use this proxy to support AGOL app logins] (https://github.com/EsriCanada/proxy-oauth)