Re: Create a user from postman in Standalone distribution:

2018-12-06 Thread Andrea Patricelli
Hi Juan, You request is giving an error because you are sending values that aren't meaningful for Syncope, you cannot send "string" value for auxClasses, resource, attribute schemas, etc. Those properties refer to other entities that should exist on Syncope (resources, any type classes,

Create a user from postman in Standalone distribution:

2018-12-06 Thread Juan Medina
I'm traying to create a user from postman in Standalone distribution: I try with Post to: http://localhost:9080/syncope/rest/users Body (JSON from the http://localhost:9080/syncope/swagger/): { "@class": "org.apache.syncope.common.lib.to.UserTO", "realm": "/", "auxClasses": [

Re: CORS with Standalone version

2018-12-06 Thread soyjuanmedina
Finally I solved addind , observe: "response" to the headers like this: this.http.post(url, '', { headers: headers, observe: "response", reportProgress: true }).toPromise() .then(response => { // let token = response.getHeader("X-Syncope-Token") // Los headers de la

Re: CORS with Standalone version

2018-12-06 Thread Juan Medina
I finally solve this with this chrom extension: https://chrome.google.com/webstore/detail/moesif-origin-cors-change/digfbfaphojjndkpccljibejjbppifbc I can configure to avoid CORS El mar., 4 dic. 2018 a las 16:22, Juan Medina () escribió: > I'm starting with Apache Syncope for an application