A JavaScript implementation of an oauth2 client, for inclusion in the JavaScript client generator for APIs described with RAML.