I am starting to configure Syncope and the truth is that I am encountering
a lot of problems because the reference guide is too hard to follow.

As Sergio Muriel ask here (
http://syncope-user.1051894.n5.nabble.com/Any-tutorials-td5709363.html) I
could not find any tutorials.

It would be good if there were resources. It would be great even some MOOC,
but I have not found in any of the most popular platforms (Coursera, EdX
...)

In any case I will detail my project and my needs with a double purpose,
maybe you can help me and at least this help me to clarify my ideas and see
what and how I want to do.

I have installed the Standalone version and after some CORS problems I have
been able to register and log a user from my front.

Now I would need to configure Syncope properly in order to replace my DB.

My  DB  has the registered users in this SQL table

CREATE TABLE `e_users` (
  `e_id` int(11) NOT NULL AUTO_INCREMENT,
  `e_email` varchar(241) DEFAULT NULL,
  `e_name` varchar(30) DEFAULT NULL,
  `e_surname1` varchar(30) DEFAULT NULL,
  `e_surname2` varchar(30) DEFAULT NULL,
  `e_address` varchar(40) DEFAULT NULL,
  `e_building` varchar(40) DEFAULT NULL,
  `e_flat_number` varchar(10) DEFAULT NULL,
  `e_pcode` varchar(10) DEFAULT NULL,
  `e_city` varchar(40) DEFAULT NULL,
  `e_pin` varchar(10) DEFAULT NULL,
  `e_phone_number` varchar(30) DEFAULT NULL,
  `e_passwd` varchar(64) DEFAULT NULL,
  `e_birth_date` date DEFAULT NULL,
  `e_patnr` varchar(10) DEFAULT NULL,
  `e_papid` varchar(10) DEFAULT NULL,
  `e_active` int(1) DEFAULT '0',
  `e_uuid` varchar(45) DEFAULT NULL,
  `e_dependency` int(11) DEFAULT NULL,
  `e_registered` datetime DEFAULT NULL,
  `e_actived` datetime DEFAULT NULL,
  `e_role` varchar(20) NOT NULL DEFAULT 'user',
  `e_language` varchar(5) DEFAULT NULL,
  `e_already_patnr` int(1) NOT NULL DEFAULT '0',
  `e_gender` varchar(1) DEFAULT NULL,
  `e_nhs_number` varchar(15) DEFAULT NULL,
  `e_doc_type` varchar(2) DEFAULT NULL,
  `e_doc_number` varchar(15) DEFAULT NULL,
  `e_country` varchar(3) DEFAULT NULL,
  `e_viewmedicaldoc` int(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`e_id`),
  UNIQUE KEY `e_email_UNIQUE` (`e_email`),
  UNIQUE KEY `e_papid_UNIQUE` (`e_papid`),
  UNIQUE KEY `e_uuid_index` (`e_uuid`),
  KEY `fk_dependency_idx` (`e_dependency`)
) ENGINE=InnoDB AUTO_INCREMENT=296 DEFAULT CHARSET=utf8;

The first thing you would need is to know how to configure the user
registry with all those fields

I think I'll have to create all the types in: Configuration -> Types (tab
Schemas)

I have to see how to create the Schema e_id there so that it is the unique
key and it is assigned directly.

Then create a class (my-custom-user) in: Configuration -> Types (tab
AnyTypeClasses)

Finally create a Type (CUSTOM-USER) in: Configuration -> Types (tab
AnyTypes)

I do not know if once you create that type a new url will be created in
http://localhost:9080/syncope/rest/custom-user in which I can do POST and
GET, otherwise, I will have to assign the created class (my-custom-user) to
the existing Type (USER) to work on the same url
http://localhost:9080/syncope/rest/user

Right now activation emails are not being sent and users are created
directly as active. They should be created as inactive and activated by
clicking on the link in the email.

There are special users that are created by another user and that will be
directly active but linked to the user who created it, by storing in the
e_dependency field.

I have to learn how to search for user groups, so that when someone logs,
in addition to their information, they can search the information of all
the users that have their id in the field e_dependency

Now, when I create a user, from the front I have to send a header:
'Authorization': 'Basic' + btoa ('admin' + ':' + 'password')
For the platform to support it, I have to find out how to configure it so
that it is not necessary to pass that authorization.

Well, I hope that most of these things can be found in the reference Guide,
but well, any help will be more than welcome, and if someone knows courses
or tutorials something less hard than the Referene Guide and puts links I
would also appreciate it.

Reply via email to