New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when I try to add a new users in UAA #249
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/106735138. |
The url used is: https://uaa.MY_IP.xip.io/Users |
I have just updated the request adding some details from: and now it runs, but I think that UAA has some problem with JSON response. Users.prototype.add = function (token_type, access_token, uaa_options) {
"use strict";
var url = this.UAA_API_URL + "/Users";
var options = {
method: 'POST',
url: url,
headers: {
Accept: 'application/json',
Authorization: token_type + ' ' + access_token
},
json: uaa_options
};
return this.REST.request(options, "201", false);
}; Test: it("The platform creates an User", function () {
this.timeout(5000);
var uaa_options = {
"schemas":["urn:scim:schemas:core:1.0"],
"userName":"demo4",
"emails":[
{
"value":"demo@example.com",
"type":"work"
}
]
};
return CloudFoundryUsers.add(token_type, access_token, uaa_options).then(function (result) {
console.log(result)
expect(true).to.be.a('boolean');
});
}); FIXED. |
Hi, I am trying to create an user using this documentation:
https://github.com/cloudfoundry/uaa/blob/master/docs/UAA-APIs.rst#create-a-user-post-users
and I have just created a method to do it:
When I execute the method, I receive the following error:
Do you have a Curl request to add an User in UAA. I would like to create a user in uaa to call later this method in CC API:
http://apidocs.cloudfoundry.org/222/users/creating_a_user.html
Does exist a UAA documentation in the way of CC API:
http://apidocs.cloudfoundry.org/222/
Many thanks in advance
Juan Antonio
The text was updated successfully, but these errors were encountered: