radarAccessControl

Managing user authentication and authorization workflows, ensuring secure access to the platform.

Create a new user account

post

Create a new user account

Body
first_namestringOptionalExample: Leo
last_namestringOptionalExample: Jourdain
usernamestringRequiredExample: LeoJr
passwordstringRequiredExample: astrongpasswrd
emailstringRequiredExample: leo.jourdain@etu-upsaclay.fr
phone_numberstringOptionalExample: +33XXXXXXXXXX
Responses
chevron-right
200

Successful operation

post
/access/api/signup

Login

post

Get login credientials

Body
usernamestringRequiredExample: Leojr
passwordstringRequiredExample: astrongpasswd
Responses
chevron-right
200

Successful operation

post
/access/api/login

Retrieve user informations

get

Retrieve user informations. If no query parameters are provided, all the users are returned. Administrator rights are required.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
limitstringOptional

Response is paginated

Example: ?limit=5
usernamestringOptional

username

Example: Leooojr
rolestringOptional

the role sought

Example: VALIDATOR
Header parameters
AuthorizationstringRequired

authorization

Example: Bearer mytoken
Responses
chevron-right
200

successful operation

Responseone of
get
/access/api/user

Update user information

put

Update user information. Administrator rights are required.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
usernamestringRequired

user to update

Example: leojr
Header parameters
AuthorizationstringRequired

authorization

Example: Bearer mytoken
Body
rolestring · enumRequiredExample: ANNOTATORPossible values:
Responses
chevron-right
200

successful operation

put
/access/api/user/{username}

Last updated