There are two kind of User in Cytomine: human user (User) and software user (UserJob). Each of them extends the SecUser class. Each user has some roles (SecRole) and some permissions on domain instances.
To have more details about permissions, check the permission guide.
Package main classes
Human user. Extend SecUser class
Software user. Extend SecUser class
A user role (admin, user,...)
A link between a user and a role
A set of user
A user in a group
User and UserJob extends SecUser. User and UserJob are able to login to Cytomine. When a user run a job, this will create a new UserJob with the same user role.
A software user (UserJob) will use a client and will log thanks to public and private keys by generating a signature.
The main code is located in APIAuthentificationFilters.tryAPIAuthentification(). This method will check if the signature is valid.
There are 4 kinds of user:
This user will now be logged as an admin. He may the close its admin session.
This service calls the closeAdminSession.
An admin user is able to be connected as another user.
This functionnality simply calls the /j_spring_security_switch_user service (with POST param: j_username:"xxx").