dist/corbel.with-polyfills.js
function(user) {
                console.log('oauthInterface.user.create', user);

                return this.request({
                        url: this._buildUri(this.uri),
                        method: corbel.request.method.POST,
                        headers: {
                            Authorization: 'Basic ' + this.getSerializer()(this.clientId + ':' + this.clientSecret)
                        },
                        dataType: 'text',
                        data: user
                    })
                    .then(function(res) {
                        return corbel.Services.getLocationId(res);
                    });
            }
function(user) {
                console.log('oauthInterface.user.create', user);

                return this.request({
                        url: this._buildUri(this.uri),
                        method: corbel.request.method.POST,
                        headers: {
                            Authorization: 'Basic ' + this.getSerializer()(this.clientId + ':' + this.clientSecret)
                        },
                        dataType: 'text',
                        data: user
                    })
                    .then(function(res) {
                        return corbel.Services.getLocationId(res);
                    });
            }
function ( user ) { console . log ( 'oauthInterface.user.create' , user ) ; return this . request ( { url : this . _buildUri ( this . uri ) , method : corbel . request . method . POST , headers : { Authorization : 'Basic ' + this . getSerializer ( ) ( this . clientId + ':' + this . clientSecret ) } , dataType : 'text' , data : user } ) . then ( function ( res ) { return corbel . Services . getLocationId ( res ) ; } ) ; }
Adds a new user to the oauth server.

@method
@memberOf corbel.Oauth.UserBuilder

@param {Object} user    The user to be created

@return {Promise} A promise with the id of the created user or fails
with a {@link corbelError}.
Adds a new user to the oauth server .