Skip to content

Instantly share code, notes, and snippets.

@stackwalker
Created January 29, 2016 22:37
Show Gist options
  • Save stackwalker/ffbfd208cfbcd7fba3b4 to your computer and use it in GitHub Desktop.
Save stackwalker/ffbfd208cfbcd7fba3b4 to your computer and use it in GitHub Desktop.
var chakram = require('chakram'),
expect = chakram.expect;
var authUrl = 'secret';
var consumerUrl = 'secret';
var consumerId = 'christest11';
describe('Consumer', function(){
it('should get a jwt and crud a consumer', function(){
return chakram.post(authUrl, {
headers: {
'Authorization': 'Basic ' + 'secret'
},
strictSSL: false,
json: true,
body: {
'grant_type': 'client_credentials',
'scope': '*'
}
})
.then(function(response){
console.log(response);
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment